Intensity and mean of segmented Regions in a image.

12 次查看(过去 30 天)
I want to find intensity (x) of Every segmented region and mean (y) of that region and then will made a image I(x,y). how to do it??
I am implemeting a ieee journal. I want to split a image into 1) Object Approximation Image ( I (x, y) , represents the intensity in each segmented region with the mean value of the region) and 2) object-error image ( the difference between the pixel value and the mean value of the region)
  3 个评论
Sardar Jaffar Ali
Sardar Jaffar Ali 2015-5-29
编辑:Sardar Jaffar Ali 2015-5-29
I am implemeting a ieee journal. I want to split a image into 1) Object Approximation Image ( I (x, y) , represents the intensity in each segmented region with the mean value of the region) and 2) object-error image ( the difference between the pixel value and the mean value of the region)
Image Analyst
Image Analyst 2015-5-29
Sardar, did you see my answer below? If you still need more instruction, then see my Image Segmentation Tutorial in my File Exchange http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2015-5-29
You can use regionprops() and ask for the mean intensity of all the blobs.
labeledImage = bwlabel(binaryImage);
measurements = regionprops(labeledImage, grayscaleImage, 'MeanIntensity');
I'm not sure why you're calling the intensity x and the mean of the intensity y as if it's some kind of cartesian coordinate or something. There is a measurement called PixelValues if you're interested in the value of every single pixel in the blob. MeanIntensity gives you the mean of all those pixel values.

类别

Help CenterFile Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by