How can I get the pixel values of a region of interest in an color image? I selected ROI using roipoly()

1 view (last 30 days)
I am doing a project on image inpainting.
Between the process I need to determine whether a specific region is damaged or not; for that I want to compare a current pixel with a damaged pixel. How can I determine the pixel vale of the region of interest?

Answers (1)

Image Analyst
Image Analyst on 31 Jan 2013
How interesting that you flag your own question as unclear. So go ahead and clear it up.
For example, you obviously have a picture that you think might have damaged pixels in it. Do you have the image that is a perfect reference image?
The region of interest is what you say it is. What does it mean to you? Does it mean a 5 by 15 window? Does it mean all connected pixels within 42 gray levels of the pixel in question? Or some other definition? There is no one, single definition of region of interest that applies to all images in the universe. You have to define what is "of interest" to you. You specifically, not me or Jan or Walter or anyone else, but to you.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!