This is a surpising error. It looks like it doesn’t find any pixel type (since the template used is (,3).
Do you know the pixel type of your image? If so, could you try reading it with:
reader=itk.ImageFileReader[YourPixelType,3].New(input_filename)
reader.Update()
image = reader.GetOutput()
If this does not work, can you try to run the following snippet of code and post the result here:
imageIO = itk.ImageIOFactory.CreateImageIO( input_filename, itk.ImageIOFactory.ReadMode )
if not imageIO:
raise RuntimeError("No ImageIO is registered to handle the given file.")
imageIO.SetFileName( input_filename )
imageIO.ReadImageInformation()
dimension = imageIO.GetNumberOfDimensions()
componentAsString = imageIO.GetComponentTypeAsString(imageIO.GetComponentType())
pixel = imageIO.GetPixelTypeAsString(imageIO.GetPixelType())
print("Dimension: %d; Component: %s; PixelType: %s"%(dimension, componentAsString, pixel))