[Insight-users] itkImageToVTKImageFilter

Luis Ibanez luis.ibanez at kitware.com
Sat Nov 28 12:35:34 EST 2009


Hi aphroditeala,

Why are you connecting the output of a filter as
input to a reader ?

Normally, you take the Output of readers.


You probably should have

> connector .SetInput(  reader.GetOutput()   );

instead of your current:

> reader .SetInput(  connector.GetOutput()  );



   Regards,


          Luis


------------------------------------------
2009/11/26 钱天翼 <aphroditeala at gmail.com>:
> 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
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>


More information about the Insight-users mailing list