Robert:<br><br>No it does not. As the documentation of itk::VTKImageExport (used by the itkImageToVTKImageFilterclearly mentions :<br><br> * Note that not all image types will work correctly. VTK will only<br> * support images of 1, 2, or 3 dimensions. Scalar value types can be<br>
* one of: float, double, char, unsigned char, short, unsigned short,<br> * int, unsigned int, long, unsigned long.<br> *<br> * Currently VTKImageExport does not support pixel types with multiple<br> * components (like RGBPixel)<br>
<br><br>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)<br>
<br>The following post should get you started :<br><br> <a href="http://osdir.com/ml/lib.itk.user/2004-07/msg00189.html">http://osdir.com/ml/lib.itk.user/2004-07/msg00189.html</a><br><br>Also feel free to submit a feature request at <a href="http://itk.org">itk.org</a>.<br>
<br>--<br>karthik<br><br><div class="gmail_quote">On Thu, May 21, 2009 at 1:29 PM, Robert Golebiowski <span dir="ltr"><<a href="mailto:robgolebiowski@googlemail.com">robgolebiowski@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hi,<br></div><div></div><div>Could anybody tell me please if ImageToVTKImageFilter supports RGBPixels ? <br>
</div><div></div><div>Thanks,<br>Rob<br><br></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Karthik Krishnan<br>R&D Engineer,<br>Kitware Inc.<br>Ph: 518 881 4919<br>Fax: 518 371 4573<br>