Default settings for defying GLCM, RLM

Hi team.

Kindly, I am quite a little bit confused about the default settings used for defying the gray level co-occurrence matrix (GLCM) and run length matrix as well (RLM).

Does the GLCM, by default, study the occurrence of pixel pairs at distance =1 and angle =0 ? and same for RLM, which angle is used by default (is it 0 angle ?)

Kindly, if we would like to change the angle and distance between the pixel pairs in defying these matrices, how can we do that ?

Thanks

Distances used by default is [1], but multiple can be specified. As for angles, all possible angles are used, with the ultimate feature value being the mean across features values calculated per angle. It is possible to skip angles that define an offset between slices, using force2D. It is not possible to skip specific angles.

If you want to calculate features for angles separately, you’ll need to create a custom feature class based on the regular GLCM/GLRLM classes. See also this post.

All settings, and their default values, are listed in the PyRadiomics online documentation.

@JoostJM Many thanks. I will go back and read the documentation carefully. Appreciated