Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Floating scalar type mask causes runtime error #430

Closed
fedorov opened this issue Sep 28, 2018 · 0 comments · Fixed by #431
Closed

Floating scalar type mask causes runtime error #430

fedorov opened this issue Sep 28, 2018 · 0 comments · Fixed by #431
Labels

Comments

@fedorov
Copy link
Collaborator

fedorov commented Sep 28, 2018

This issue was identified by a Slicer user. I see cast is done in some places already, but I am not sure what is the one place where it should be done to avoid redundancy. Ideally, it should be done only once. @JoostJM do you have a good idea where this should be fixed once and forever?

Traceback (most recent call last):
  File "/Applications/Slicer.app/Contents/Extensions-27399/SlicerRadiomics/lib/python2.7/site-packages/radiomics/scripts/segment.py", line 38, in extractSegment
    feature_vector.update(extractor.execute(imageFilepath, maskFilepath, label))
  File "/Applications/Slicer.app/Contents/Extensions-27399/SlicerRadiomics/lib/python2.7/site-packages/radiomics/featureextractor.py", line 387, in execute
    image, mask = self.loadImage(imageFilepath, maskFilepath)
  File "/Applications/Slicer.app/Contents/Extensions-27399/SlicerRadiomics/lib/python2.7/site-packages/radiomics/featureextractor.py", line 492, in loadImage
    self.generalInfo.addMaskElements(image, mask, self.settings.get('label', 1))
  File "/Applications/Slicer.app/Contents/Extensions-27399/SlicerRadiomics/lib/python2.7/site-packages/radiomics/generalinfo.py", line 107, in addMaskElements
    lssif.Execute(mask)
  File "/Applications/Slicer.app/Contents/lib/Python/lib/python2.7/site-packages/SimpleITK/SimpleITK.py", line 43062, in Execute
    return _SimpleITK.LabelShapeStatisticsImageFilter_Execute(self, *args)
RuntimeError: Exception thrown in SimpleITK LabelShapeStatisticsImageFilter_Execute: /Volumes/Dashboards/Preview/Slicer-0-build/SimpleITK/Code/Common/include/sitkMemberFunctionFactory.hxx:196:
sitk::ERROR: Pixel type: 64-bit float is not supported in 3D byN3itk6simple31LabelShapeStatisticsImageFilterE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant