SimilarityIndexImageFilter (Beginner question)

Dear community,
I tried to compute the similarity of two binary labelmap volumes (pixel type unsigned char) in 3D Slicer Simple filters SimilarityIndexImageFilter. There comes an error message:

Wrong number or type of arguments for overloaded function ‘ImageFileWriter_Execute’.

Possible C/C++ prototypes are:
slicer_itk::simple::ImageFileWriter::Execute(slicer_itk::simple::Image const &)
slicer_itk::simple::ImageFileWriter::Execute(slicer_itk::simple::Image const &,slicer_itk::simple::PathType const &,bool,int)

What are the correct file formats for input and output files for SimilarityIndexImageFilter ?

Best regards,
Mikko

Please provide a screen shot of the GUI from 3D Slicer for this filter. This filter in SimpleITK expects the two input images to be of the same type and have the same metadata geometry.

Getting information on the two input images would be useful to ensure the above condition is met.

This discourse is for ITK and SimpleITK. And some of these details maybe 3D Slicer specific. there is the 3D Slicer discourse: https://discourse.slicer.org

1 Like