[vtkusers] casting problem

Charl P. Botha c.p.botha at its.tudelft.nl
Thu Feb 8 12:26:45 EST 2001


Dear VTKers,

I'm having a strange problem with the vtkImageCast class when using it from
Python.  This is a relatively recent (one or two days ago) CVS checkout of
the VTK tree; the problem is easily reproducible by running:
python imaging/examplesPython/TestSeedConnectivity.py

vtkImageSeedConnectivity yields the following error:
ERROR: In vtkImageSeedConnectivity.cxx; line 171
vtkImageSeedConnectivity: Execute: Both input and output must have scalar
type UnsignedChar

This is strange since the data is being cast to the correct type.  Is anyone
else experiencing the same behaviour?

Thanks,

-- 
charl p. botha      | computer graphics and cad/cam 
http://cpbotha.net/ | http://www.cg.its.tudelft.nl/




More information about the vtkusers mailing list