standard deviation and mean of image

조회 수: 3 (최근 30일)
farheen asdf
farheen asdf 2015년 5월 1일
댓글: Image Analyst 2015년 6월 15일
I have an image A and its corresponding glcm matrix named GLCM. which one of the two matrices will provide me with the correct standard deviation and mean of the image?
I know what GLCM is and how it works but finding standard deviation from GLCM matrix gives a very high value. While if i find standard deviation from the image matrix itself it is a relatively smaller value. So which one of the two shows the actual standard deviation of the image? Same goes for the mean of the image.

채택된 답변

Jeff E
Jeff E 2015년 5월 1일
I'm assuming you are interested in the mean and S.D. of the intensity in the image. In which case, you would just take the mean (mean2) and S.D. (std2) of the image.
The GLCM matrix is a measure of texture. I don't see how the GLCM would give you any meaningful information about the distribution of the pixel intensities.
If you're interested in some other measure of the image that is not intensity, you'll need to elaborate.
  댓글 수: 2
farheen asdf
farheen asdf 2015년 6월 15일
yes i am talking about the image intensity. So i should use the image matrix to find mean and SD? i also wanted to know about the variance of the image. I think i should use the image matrix to find that too. Correct?
Image Analyst
Image Analyst 2015년 6월 15일
Yes, and yes.
theVariance = var(grayImage(:));

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by