Recognition of colored percentage of a white paper using Image Processing
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I want to estimate the percentage of the following image (see attachment), where there are different colors and intensity. There is also an annoing shadow in the upper part of the image.
I already tryed to compute the gray scale and set simply a threshold (-->binary image), but this method is not enougth robust and leads wrong results and a partial recognition of the painted stain (eg only the black and green spot).
How can I get a better estimation of such colored % of the image surface (without differentiate between colors)?
At a glance, I think that the answer could be about 25%, but I want to find the exact answer using MATLAB.
Thank you and best regards, A
Edit:
- I just added a version without shadows (see right image) for start with a simplier case.
- Does it can help to have a picture of a white paper as "reference image" without colors in order to compare it with the colored image?
![With shadow](https://www.mathworks.com/matlabcentral/answers/uploaded_files/418493/With%20shadow.jpeg)
![Without shadow](https://www.mathworks.com/matlabcentral/answers/uploaded_files/418548/Without%20shadow.jpeg)
Respuestas (1)
cr
el 18 de Nov. de 2020
You can even out the light intensity across the image using imtophat(). Then use segmentation and/or ROI based processing functions -like roicolor(), activecontour, bfscore, etc. Shouldn't be hard.
0 comentarios
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!