[vtkusers] ImageToVTKImageFilter and RGBPixels
Karthik Krishnan
karthik.krishnan at kitware.com
Thu May 21 15:44:50 EDT 2009
Robert:
No it does not. As the documentation of itk::VTKImageExport (used by the
itkImageToVTKImageFilterclearly mentions :
* Note that not all image types will work correctly. VTK will only
* support images of 1, 2, or 3 dimensions. Scalar value types can be
* one of: float, double, char, unsigned char, short, unsigned short,
* int, unsigned int, long, unsigned long.
*
* Currently VTKImageExport does not support pixel types with multiple
* components (like RGBPixel)
However its not hard to do so, since the memory organization of an RGBPixel
(or any multicomponent image in ITK constructed using an itk::FixedArray) is
the same in ITK and VTK. Its contiguous C1 C2 .. Cn C1 C2 .. Cn ... both in
ITK (itk::ImportImageContainer) and in VTK, (vtkDataArray)
The following post should get you started :
http://osdir.com/ml/lib.itk.user/2004-07/msg00189.html
Also feel free to submit a feature request at itk.org.
--
karthik
On Thu, May 21, 2009 at 1:29 PM, Robert Golebiowski <
robgolebiowski at googlemail.com> wrote:
> Hi,
> Could anybody tell me please if ImageToVTKImageFilter supports RGBPixels ?
> Thanks,
> Rob
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
Karthik Krishnan
R&D Engineer,
Kitware Inc.
Ph: 518 881 4919
Fax: 518 371 4573
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090521/b11821d1/attachment.htm>
More information about the vtkusers
mailing list