[Insight-users] vtk polydata import / export
imho
imho at skynet . be
Mon, 07 Jul 2003 16:42:06 +0200
Hi Luis,
I use vtkPolyData to represent 2 3D liver's models builded from slices.
I already do registration on it with VTK (point-based + ICP), and now
I'd like to use the demon registration in ITK.
So I'll try the conversion you purpose.
Thanks for your help
Imho.
Luis Ibanez wrote:
>
> Hi Imho,
>
> The import/export connections currently available
> between ITK and VTK only manage image-to-image
> conversions.
>
> You may want to convert your vtkPolyData to a vtkImageData
> and then use the itkVTKImageToImageFilter available in
>
> InsightApplications/Auxiliary/vtk
>
> In any case, a vtkPolyData may not be the best support
> for representing an image...
>
>
> Please let us know if you have futher questions,
>
>
> Thanks
>
>
> Luis
>
>
>
> ------------------
> imho wrote:
>
>> Hi all,
>> is it possible to import and export a vtkPolyData or can I use images
>> only?
>> How can I do?
>> I have two vtkPolyData volumes, and I'd like to use itk filters like
>> this :
>>
>> vtk reader -> vtk filters -> itk filters -> vtk viewer
>> I've tried this :
>>
>> VTK -> ITK
>> -> VTK
>>
>> ITKImageExporter4 VTKImageImporter4
>> ITKImageImporter4 == first POLY
>>
>> ITKImageExporter5 VTKImageImporter5
>> == second POLY (no
>> output)
>>
>> but I don't know how to convert my vtkPolyData or how to typedef the
>> VTKimporter to make it work :
>> typedef unsigned short PixelType;
>> typedef itk::Image<PixelType, Dimension> ImageType;
>> typedef itk::VTKImageImport<ImageType> ImageImportType;
>> is ok but not with a polyData, and
>>
>> typedef itk::VTKImageImport<vtkPolyData*> ImageImportType;
>> isn't ok
>>
>> Thanks a lot
>>
>> imho
>
>
>
>
>
>