AIM-Harvard / pyradiomics

Open-source python package for the extraction of Radiomics features from 2D and 3D images and binary masks. Support: https://discourse.slicer.org/c/community/radiomics
http://pyradiomics.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.16k stars 500 forks source link

[FEAT EXTRACTION]: glrm & glcm only return 1 value instead of 14 (13 directions + mean) #694

Closed LHuysmans closed 2 years ago

LHuysmans commented 3 years ago

Describe the bug When calculating the radiomics features, I expect to get multiple values for the glrm and glcm features as they are directional dependent (13 directions + mean). When I run the code below, I don't get any errors but the glrm and glcm features only contain 1 value instead of 14 (or 13?). What am I doing wrong?

PyRadiomics configuration setting: binWidth: 13 label: 1 normalize: True interpolator: 'sitkBSpline' resampledPixelSpacing: weightingNorm:

imageType: Original: {}

featureClass: shape: firstorder: glcm: ngtdm: glrlm: glszm: gldm:

To Reproduce from radiomics import featureextractor image_file_path = ... segm_file_path = ... extractor = featureextractor.RadiomicsFeatureExtractor(param_file) result = extractor.execute(image_file_path, segm_file_path)

Version (please complete the following information):

JoostJM commented 3 years ago

The values are averaged across directions.

LHuysmans commented 3 years ago

@JoostJM And how can I get the values per direction? Or is this not possible?

JoostJM commented 2 years ago

see #735