Intensity and mean of segmented Regions in a image.

12 visualizzazioni (ultimi 30 giorni)
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 Commenti
Sardar Jaffar Ali
Sardar Jaffar Ali il 29 Mag 2015
Modificato: Sardar Jaffar Ali il 29 Mag 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 il 29 Mag 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

Accedi per commentare.

Risposte (1)

Image Analyst
Image Analyst il 29 Mag 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.

Community Treasure Hunt

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

Start Hunting!

Translated by