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

[FEAT EXTRACTION] How to Extract features with Local Binary Pattern Filtered Image #716

Open gm039 opened 3 years ago

gm039 commented 3 years ago

How to Extract features with Local Binary Pattern Filtered Image (3D). I am using Pyradiomics Version 3.0.1. I am using the following lines of code.

settings = {} settings['binWidth'] = 10 settings['resampledPixelSpacing'] = [0.5,0.5,0.5] # This is an example for ##defining resampling (voxels with size 3x3x3mm) settings['interpolator'] = 'sitkBSpline' settings['normalize'] = False settings['label'] = Label_ID

settings['verbose'] = True

settings['correctMask']=True

extractor = featureextractor.RadiomicsFeatureExtractor(**settings) extractor.enableImageTypes(Wavelet={},LPD3D={}, LoG={'sigma':[1.0, 2.0, 3.0, 4.0, 5.0]})

It throws the following error: AttributeError: module 'radiomics.imageoperations' has no attribute 'getLPD3DImage'

Can you please help?

JoostJM commented 3 years ago

Can you check your radiomics.imageoperations file (located in site packages). This function should exist, maybe you changed something in imageoperations?