Intensity and mean of segmented Regions in a image.

조회 수: 12 (최근 30일)
Sardar Jaffar Ali
Sardar Jaffar Ali 2015년 5월 29일
댓글: Image Analyst 2015년 5월 29일
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