Problem in GCLM Matrix
1 回表示 (過去 30 日間)
古いコメントを表示
A matrix 'C' having 256 X 256 elements. Values in this matrix are between 0 and 255. What will be the exact MATLAB command for Gray Level Co-matrix (GLCM) so that output matrix is also 256 X 256. I tried but the output of GLCM is 8 X 8 Which is different from the actual GLCM.
0 件のコメント
回答 (1 件)
Jeremy Kemmerer
2014 年 10 月 2 日
The size of the GCLM matrix (output from the “ graycomatrix ” function) depends on the number of grayscale levels of the image, and not on the size of the image itself. The ‘ numlevels ’ parameter can be modified to adjust the number of grayscale levels used by “graycomatrix” and hence change the size of the output.
In your case, you could try:
>> glcm = graycomatrix(I,'numlevels',256);
Please refer to the following documentation for more information about the “integral2” function: http://www.mathworks.com/help/images/ref/graycomatrix.html
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!