gray level cooccurrence matrix
이전 댓글 표시
my matrix is
a=[1 1 5 6 8;
2 3 5 7 1;
4 5 7 1 2;
8 5 1 2 5];
i apply the function *graycomatrix(a)* ;my out put is 8*8 matrix pixel(8,8)=16 and all other values are zero;
but i want to obtain following matrix.
[1 2 0 0 1 0 0 0;
0 0 1 0 1 0 0 0;
0 0 0 0 1 0 0 0;
1 0 0 0 0 1 2 0 ;
0 0 0 0 0 0 0 1;
2 0 0 0 0 0 0 0;
0 0 0 0 1 0 0 0];
when i'm applying *graycomatrix(mat2gray(a))* ;it gives the correct out put.what is the difference between these two.
답변 (1개)
Image Analyst
2013년 9월 23일
0 개 추천
The default is to bin gray levels into 32 gray level wide bins. You can override that and have 256 bins if you want - it's one of the input options.
카테고리
도움말 센터 및 File Exchange에서 Texture Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!