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.18k stars 497 forks source link

Question for NGTDM documents #632

Closed LiJiaqi96 closed 4 years ago

LiJiaqi96 commented 4 years ago

Hello, thanks for your documents of pyradiomics package. It really helps!

While reading the NGTDM part (https://pyradiomics.readthedocs.io/en/latest/features.html#module-radiomics.ngtdm), I have a question about the example. For calculation of s_2 (gray level 2), the document shows:

s2=|2−15/5|+|2−15/5|=2

But I think the second element should be |2-9/3| as the neighbors for the 2nd pixel with gray level 2 are: 1,3,5. Their sum is 9 and the count is 3.

Could you please tell me whether I am right? Thanks.

JoostJM commented 4 years ago

@LiJiaqi96, That is correct, I'll update the documentation.

Thanks for the catch.