Intensity and mean of segmented Regions in a image.
12 views (last 30 days)
Show older comments
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 Comments
Image Analyst
on 29 May 2015
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
Answers (1)
Image Analyst
on 29 May 2015
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.
0 Comments
See Also
Categories
Find more on Image Segmentation and Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!