How to calculate the contrast energy, entropy of an 3d volumetric image using GLCM feature extractactions method?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello, I am using GLCM for the texture analysis of 3d volumetric image. But i do not solve this problem. Error occupy as follow:
Error using graycomatrix
Expected input number 1, I, to be two-dimensional.
Error in graycomatrix>ParseInputs (line 260)
validateattributes(I,{'logical','numeric'},{'2d','real','nonsparse'}, ...
Error in graycomatrix (line 167)
[I, Offset, NL, GL, makeSymmetric] = ParseInputs(varargin{:});
댓글 수: 0
답변 (1개)
Mandar
2023년 2월 6일
편집: Mandar
2023년 2월 6일
The GLCM features can be is obtained by computing gray-level co-occurrence matrix using “graycomatrix”. Next, the “graycoprops” computes the properties such as Entropy, Homogeneity etc. by processing the matrix. Currently, “graycomatrix” function supports only 2-D intensity images as input. As a potential workaround, convert the 3-d image to the 2-d gray-level image then extract the GLCM features. In case of volumetric image, you may take the average along the one of the three dimension to get the 2-d representation using "mean" function. Refer the following documentation link to know more about GLCM properties.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!