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.11k stars 485 forks source link

Pyradiomics 'Label (%g) not present in mask' #809

Open Georgy415 opened 1 year ago

Georgy415 commented 1 year ago

Hello,

I have tried to run pyradiomics on my data but got this error:

raise ValueError('Label (%g) not present in mask. Choose from %s' % (label, labels[labels != 0])) ValueError: Label (1) not present in mask. Choose from [255]

Thank you george

I run pyradiomics /users/image1.nii /users/mask1.nii I also changed label=1 into label=255 in the Params.yaml file but I didn't help.

ayou-you commented 1 year ago
微信图片_20230526112437

i meet the probelm the other days, just change the label in the red box i have showed instead of in .yaml might sovel the problem what i show is batchProcessingWithPandas.py, and i also tryed in the other .py, it also worked, maybe you could try it.

hope that will help you

Neha-ksu commented 11 months ago

does it work with jpg or png images?