AW: [Insight-users] Show 3d image data by vtk
Luis Ibanez
luis . ibanez at kitware . com
Thu, 25 Sep 2003 00:53:39 -0400
Hi Jiang,
The simplest way to connect ITK and VTK
pipelines is to use the pseudo-filters
itkImageToVTKImage
and
itkVTKImageToImage
available in
InsightApplications/Auxiliary/vtk
They will convert an itk::Image into vtkImageData.
You can then connect the output vtkImageData
to the vtkImageViewer2 filter
http://www . vtk . org/doc/nightly/html/classvtkImageViewer2 . html
Regards,
Luis
--------------
jiang wrote:
> Hi Felix,
> Can you show me more in detail. I don't know how to use cvs. I prefer some
> c++ examples.
> I try to use itkVTKImageExport as follow:
> #include "itkVTKImageExport.h"
>
> typedef itk::VTKImageExport<ImageNDType> ExportType;
> ExportType::Pointer connector;
> connector= ExportType::New();
> connector->SetInput( reader->GetOutput() );
>
> ##Then I try to transfer connector to vtkStructuredPoint
> vtkStructuredPoints* structPts= vtkStructuredPoints::New();
> structPts=connector->GetInput();
>
> But connector->GetInput(); can not pass compiling.
>
> How should I do?
>
>
> Thank you very much!
>
>
> Chunyan
>
> -----Ursprungliche Nachricht-----
> Von: Felix Schwenk [mailto:felix . schwenk at nme . at]
> Gesendet: Mittwoch, 24. September 2003 03:12
> An: 'jiang'
> Betreff: RE: [Insight-users] Show 3d image data by vtk
>
>
> Hi Chunyan,
> in the InsightApplications directory in the ikt cvs repository you will
> find some examples
> how to connect ITK to VTK.
> You can use vtkStructuredPoints to visualize 3D images, some examples on
> volume rendering can
> be found in the vtk/examples/volumerendering dir of vtk.
>
> greetings,
> felix
>
>
>>-----Original Message-----
>>From: insight-users-admin at itk . org
>>[mailto:insight-users-admin at itk . org] On Behalf Of jiang
>>Sent: Tuesday, September 23, 2003 5:16 PM
>>To: ITK
>>Cc: VTK
>>Subject: [Insight-users] Show 3d image data by vtk
>>
>>
>>Hi,
>>I get 3d image data by reading a series of DICOM files. Now I
>>want to render it with vtk. How could I create the pipeline
>>between itk and vtk? And which data type of vtk should I use?
>>May I use vtkStructuredPoints for 3d image data or some other type?
>>
>>Thank you very much!
>>
>>Chunyan
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk . org
>>http://www . itk . org/mailman/listinfo/insight-> users
>>
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users
>