How to get the gray level co-occurrence matrix feature which is energy, entropy and contrast of the image using GUI?
2 次查看(过去 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?
0 个评论
采纳的回答
Jiro Doke
2016-12-8
7 个评论
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Detection, Range and Doppler Estimation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!