[Insight-users] vtk to itk

Thyagarajan, Siddhartha (CORP, GEITC) Siddhartha.Thyagarajan@geind.ge.com
Wed, 10 Apr 2002 16:40:58 +0530


hi,
 how do i convert a vtk image to itk format...if i directly import the image
and perform watershed filter test i get following error


C:\Insight\Auxiliary\vtk\itkVTKtoITKtoVTK.cxx(178) : error C2664: 'SetInput'
: cannot convert parameter 1 from 'class itk::SmartPointer<class
itk::Image<unsigned long,2,class itk::DefaultImageTraits<unsigned
long,2,class itk::ValarrayImageContainer<
unsigned long,unsigned long> > > >' to 'class itk::Image<float,2,class
itk::DefaultImageTraits<float,2,class itk::ValarrayImageContainer<unsigned
long,float> > > *'
        No user-defined-conversion operator available that can perform this
conversion, or the operator cannot be called 

> g  John F Welch Technology Centre
_____________________________________________________________________
Siddhartha Thyagarajan                         EMail:
Siddhartha.Thyagarajan@geind.ge.com
Imaging Technology.                             Phone:  +91-80-8412050 Ext:
3622
GE John F. Welch Technology Center    
EPIP, Phase II, Hoodi Village, Whitefield Rd., Bangalore 560066, INDIA





"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this 
communication is strictly Prohibited. 
If you have received this message by error, please notify us 
immediately, return the original mail to the sender and delete the 
message from your system."