SimpleITK / SlicerSimpleFilters

A Module for Slicer3D to provide a simple GUI to image filters from the Insight Toolkit.
Other
1 stars 12 forks source link

LabelMapMaskImageFilter exception #1

Closed ihnorton closed 11 years ago

ihnorton commented 11 years ago

image

Is this expected? From the Slicer Volumes module, the volume type is "unsigned short" and the labelmap type is "short" ... A cursory look at SlicerSimpleFilters.py leads me to believe that this should be supported (signed and unsigned 16 bit ints are listed in the PixelIDValueEnum map...)

ihnorton commented 11 years ago

This is in Slicer-4.2.2-2013-08-27 on Windows 7 64-bit.

blowekamp commented 11 years ago

Yes. ITK uses the term label map differently it refers to an "itk::LabelMap" image type. Slicer does not support that type. You likely just want a to try a regular mask filter. The SimpleFilters is a thin GUI for the filters available in ITK through SimpleITK. Further documentation can be found in the ITK doxygen. But there is no way to get the required input type into this filter with Slicer. I hope you found the error message displayed in this format useful, as opposed to the no output and error long approach.

ihnorton commented 11 years ago

Yes, the error message popup is helpful. IMO, if the filter cannot be used in Slicer then it should probably not be listed.

blowekamp commented 11 years ago

I would agree that some weeding of the unusable filters for Slicer should be done. However, some like this one could be made to work if some internal conversion are automatically done.