Borrar filtros
Borrar filtros

gray co matrix

1 visualización (últimos 30 días)
kash
kash el 18 de Abr. de 2012
I have a matrix A=[2 4 1 2 ;2 1 2 4; 2 3 1 2 ;1 3 3 2]
pleas etell how to get graycomatrix for this,and how is generates the gray co matrix

Respuestas (1)

supriya
supriya el 18 de Abr. de 2012
A=[2 4 1 2 ;2 1 2 4; 2 3 1 2 ;1 3 3 2] [glcm,SI] = graycomatrix(A,'NumLevels',9,'G',[]);
%The values in SI are between 1 and NumLevels. %'numlevels'=Integer specifying the number of gray-levels to use when scaling the grayscale values in I. For example, if NumLevels is 8, graycomatrix scales the values in I so they are integers between 1 and 8. The number of gray-levels determines the size of the gray-level co-occurrence matrix (glcm). By default-8 (numeric),2 (binary)
  1 comentario
kash
kash el 18 de Abr. de 2012
thanks supriya,what will happen if i give Numlevel as 4

Iniciar sesión para comentar.

Categorías

Más información sobre Modify Image Colors en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by