How to get the gray level co-occurrence matrix feature which is energy, entropy and contrast of the image using GUI?

조회 수: 4 (최근 30일)
I want to create the GUI that can extract the gray gray level co-occurrence matrix feature which is energy, entropy and contrast of the image(bitmap). How to get that feature?

채택된 답변

Jiro Doke
Jiro Doke 2016년 12월 8일
From Image Processing Toolbox, graycomatrix and graycoprops.
  댓글 수: 7
Jiro Doke
Jiro Doke 2016년 12월 8일
Take a look at the stats variable you get with graycoprops. Both the Contrast and Energy are two-element vectors, because you created a graycomatrix for two sets of offsets. So you have two contrast levels and two energy levels. Perhaps change the sprintf line to
message = sprintf('The min gray level = %d.\nThe max gray level = %d.\nThe mean gray level = %g.\nThe contrast gray level = [%g %g].\nThe energy gray level = [%g %g].', minGL, maxGL,meanGL,stats.Contrast,stats.Energy);

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

추가 답변 (1개)

Image Analyst
Image Analyst 2016년 12월 8일
Attached is my demo of glcm.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by