Intensity and mean of segmented Regions in a image.

12 vues (au cours des 30 derniers jours)
Sardar Jaffar Ali
Sardar Jaffar Ali le 29 Mai 2015
Commenté : Image Analyst le 29 Mai 2015
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 commentaires
Sardar Jaffar Ali
Sardar Jaffar Ali le 29 Mai 2015
Modifié(e) : Sardar Jaffar Ali le 29 Mai 2015
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 le 29 Mai 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

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 29 Mai 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.

Catégories

En savoir plus sur Image Segmentation and Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by