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.11k stars 485 forks source link

GLSZM features equations #804

Closed debaleena04 closed 1 year ago

debaleena04 commented 1 year ago

For calculating GLSZM, I have doubt regarding i in formulas.

Foreground of 2 images have 9 rows and 5 columns. In one image, first 3 rows are all zero and last 6 rows are all 150. In second image, first 3 rows are all zero and last 6 rows are all 100. What will be i for each of them?

My calculated values does not match with output of code for following features: original_glszm_GrayLevelVariance original_glszm_HighGrayLevelZoneEmphasis original_glszm_LargeAreaHighGrayLevelEmphasis original_glszm_LargeAreaLowGrayLevelEmphasis original_glszm_LowGrayLevelZoneEmphasis original_glszm_SmallAreaHighGrayLevelEmphasis original_glszm_SmallAreaLowGrayLevelEmphasis

I must have done some mistake. But I cannot understand where I am going wrong. Please help.