[Insight-users] itkImageToVTKImageFilter
钱天翼
aphroditeala at gmail.com
Thu Nov 26 20:09:00 EST 2009
I have problem with that
itkPixelType Pixel=new itkPixelType (itkPixelTypeEnum.SignedShort);
itkImage ImageType = itkImage.New(Pixel, 3);
itkImageSeriesReader reader = itkImageSeriesReader.New(ImageType);
itkGDCMImageIO DICOMIO = itkGDCMImageIO.New();
itkImageToVTKImageFilter connector = itkImageToVTKImageFilter.New(ImageType);
reader ->SetInput( connector->GetOutput() ); (in C++) it works well.
reader .SetInput(connector.GetOutput());(in C#) error: cannot convert from 'System.IntPtr' to 'itk.itkDataObject'
using
ManagedITK-VTK-bin-x86-3.10.0.1
ManagedITK-bin-x86-3.10.0.1
thanks!
钱天翼
清华大学医学院 生物医学工程系 神经工程实验室
地址:清华大学医学院 C253
TianYi Qian Ph.D. Candidate
Laboratory of Neuro Engineering,
Department of Biomedical Engineering,
Address: Room C253,Medical School.Tsinghua University
Email: aphroidteala at gmail.com
MSN:qiantianyi at hotmail.com
QQ: 80913284
Office: +86-10-62795904
Mobile:+86-13811337821
2009-11-27
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091127/9df7638a/attachment.htm>
More information about the Insight-users
mailing list