How can i find out homogeneity of an image?

14 ビュー (過去 30 日間)
Syed Zenith Rhyhan
Syed Zenith Rhyhan 2019 年 6 月 23 日
回答済み: KALYAN ACHARJYA 2019 年 6 月 23 日
I try on this code
homogeneity = graycoprops(graycomatrix(img), 'Homogeneity')
but can't find out.please help me with source code

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 6 月 23 日
Try this way-
I=imread('circuit.tif');
%...........^^^ change name
% creation of gray-level co-occurrence matrices from image
glcm=graycomatrix(I,'Offset',[2 0;0 2])
stats=graycoprops(glcm,{'contrast','homogeneity'})
Stats gives the contrast and homogeneity.
Read here detail documentation

その他の回答 (0 件)

製品


リリース

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by