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.14k stars 492 forks source link

Error Force2D mask in 3D mask #758

Closed mfdezp11 closed 2 years ago

mfdezp11 commented 2 years ago

Dear all,

I have been trying to calculated 2D radiomics of a 3D mask. I set force2D parameter to True but when I calculated it I got the following error.

Captura

Version :

If I set force2D to False I don't get any error. Any help?

Thanks

JoostJM commented 2 years ago

You have a 3D mask, so you are unable to comput 2D shape features. Use the shape class instead. force2D does not magically make your mask 2D, it's a way of dealing with voxel anisotropy (by removing offsets that move in between slices). If you want the compute 2D shape features, you need to make your mask 2D (e.g. by only segmenting on a single slice, 3D image input is still allowed in this case).

mfdezp11 commented 2 years ago

Thank you very much. I have calculated the shape features independently from the rest with force2D to False