[Insight-users] runtime error !

Charl P. Botha c.p.botha at ewi.tudelft.nl
07 Apr 2004 17:59:13 +0200


On Wed, 2004-04-07 at 15:22, xujf wrote:

> this time I can find my errors:
> Traceback (most recent call last):
> File "fastmarching.py", line 57, in ?
>     itkimport.Update()
> File "E:\\Bin\\ITK\\bin\\release\\itkVTKImageImport.py", line 982, in Update
>     def Update(*args): return _itkVTKImageImport.itkVTKImageImportF3_Pointer_Updat(*args)
> RuntimeError: E:\\ITK6\\Code\\BasicFilters\\itkVTKImageImport.txx:239:
> itk::ERROR: VTKImageImport(06099EF0): Input scalar type is short but should be f
> loat
> 
> I think maybe this error occurs just because of the sentence "connect.ConnectVTKToITKF3(vtkexport,itkimport.GetPointer())".How should I correct it?

Please cast the output of the MINC reader to float with a vtkImageCast
and then connect the output of the vtkImageCast to the vtkExporter.

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/