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.15k stars 494 forks source link

Multiple wavelets with one parameter file? [FEAT EXTRACTION] #723

Open asy51 opened 3 years ago

asy51 commented 3 years ago

Is it possible to configure a parameter file to make it generate a set of features for each wavelet decomposition type?

imageType:
  Wavelet1:
    wavelet: 'haar'
    start_level: 0
    level: 1
  Wavelet2:
    wavelet: 'coif1'
    start_level: 1
    level: 2

PS: Also want to confirm that the empty dict Wavelet: {} signifies default values, equivalent to:

imageType:
  Wavelet:
    wavelet: 'coif1'
    start_level: 0
    level: 1
helderc commented 2 years ago

Hello, I'm looking for something similar.

I want to specify more than one Wavelet. According to the documentation, this should work:

extractor.enableImageTypeByName('Wavelet', customArgs={'wavelet':['db4', 'dmey'], 'level':[4]})

But I got the error: AttributeError: 'list' object has no attribute 'lower'

I even try to use a Params.yaml file but the error is the same:

imageType:
  Wavelet: 
    wavelet: ['db4', 'dmey']
    level: 4

Is there any way to do this?