1
votes

My current project is to calculate the surface area of the paste covered on the cylinder.

Refer the images below. The images below are cropped from the original images taken via a phone camera.

enter image description here

enter image description here

I am thinking terms like segmentation but due to the light reflection and shadows a simple segmentation won’t work out.

Can anyone tell me how to find the surface area covered by paste on the cylinder?

1
What values are you given (or not given) ahead of time? e.g. the radius and length of the cylinder, etc. - DuckMaestro
The images shared is the cropped cylinder.. The entire image is the ROI. So, now in 2D the cylinder image is a rectangle. The question is to find the area covered by the paste on the image (in pixels). "Paste = Brown in top image and rose in the bottom image". - Manoj Arun S
Is the colour of the paste going to continue to change in different images? - SalGad
@ salGad yes Generally it's darker shade than the background(cylinder) - Manoj Arun S

1 Answers

2
votes

First I'd simplify the problem by rectifying the perspective effect (you may need to upscale the image to not lose precision here). Then I'd scan vertical lines across the image.

Further, you can simplify the problem by segmentation of two classes of pixels, base and painted. Make some statistical analysis to find the range for the larger region, consisting of base pixels. Probably will make use of mathematical median of all pixels.

Then you expand the color space around this representative pixel, until you find the highest color distance gap. Repeat the procedure to retrieve the painted pixels. There's other image processing routines you may have to do such as smoothing out the noise, removing outliers and background, etc.