[Insight-users] vtk polydata import / export
imho
imho at skynet . be
Tue, 08 Jul 2003 10:12:46 +0200
Hi Mathieu,
thanks, I've had a look on this and I'll try it if I can't use a system
of pipe-line between vtk and itk.
It looks good.
Imho
Mathieu Malaterre wrote:
> imho,
>
> You can have a look here:
>
> http://www . creatis . insa-lyon . fr/~malaterre/itk/polydata2itk . cxx
>
> This is based on
>
> InsightApplications/Auxilary/vtk/vtk2itk.cxx
>
> But instead of transforming a vtkUnstructuredGrid it take into account
> a vtkPolyData
>
> Beware that it has not been heavily tested. It currently only works on
> triangle polydata (so you need to go through a vtkTriangleFiler first).
>
> HTH
> mathieu
>
>
> imho wrote:
>
>> 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
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk . org
>> http://www . itk . org/mailman/listinfo/insight-users
>>
>
>