what should i add to my code so that Glcm is calculated in all the directions of the image..
1 view (last 30 days)
Show older comments
i've a grayscale image.i want to calculate the glcm of the image..
like
glcm=graycomatrix(image);
this will give me an glcm of output matrix as 8x8... what should i do or in what way offset sholud be specified that glcm is caculated in all the directions of the image...
can anybody tell me plz...
also offset=[0 2 ; 2 0] what does it mean here 2 specifies what???
also offset1=[0 1; -1 1; -1 0; -1 -1];
can anybody tell me the meaning of it...
which offset should i prefer in order to calculate glcm in all the direction
reply soon
1 Comment
Salma Hassan
on 16 Sep 2017
sir i have the same problem of you so i recommend you to see this link https://www.mathworks.com/help/images/specify-offset-used-in-glcm-calculation.html
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!