what should i add to my code so that Glcm is calculated in all the directions of the image..

1 visualización (últimos 30 días)
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 comentario
Salma Hassan
Salma Hassan el 16 de Sept. de 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

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by