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

module 'radiomics.featureextractor' has no attribute 'RadiomicsFeaturesExtractor' #718

Closed Rezwanarosen closed 2 years ago

Rezwanarosen commented 3 years ago

Though I installed PyRadiomics in google colab, after running the instantiating code it's showing -module 'radiomics.featureextractor' has no attribute 'RadiomicsFeaturesExtractor'. What can I do now to solve this issue?

Also, can I use .mat image files as input for feature extraction?

JoostJM commented 3 years ago

As to your first error. That has been a name change in version 3.0. The class inside radiomics.featureextractor is now called RadiomicsFeatureExtractor (without the s). This is to remove the difference in the name between the module and class.

I don't know what extensions .mat refers to. If it's readable by SimpleITK it should work. Be aware though that PyRadiomics also makes use of geometrical information such as origin, spacing and direction. If this information is not present in your input image (e.g. .jpg-like formats), some feature values may prove to be incorrect.

Rezwanarosen commented 3 years ago

Thanks!

woaiwanyasuo commented 3 years ago

thanks

Madeline271 commented 3 years ago

thanks