[vtkusers] put RGB into vtkImageData from array

David Doria daviddoria+vtk at gmail.com
Tue May 4 07:07:51 EDT 2010


On Tue, May 4, 2010 at 4:24 AM, Anant Vemuri <ajar108 at gmail.com> wrote:
> Hi
>
> I have three arrays with r, g and b data. But I am not able to put it
> together into a single vtkImageData to load as a color image. Any
> suggestions on how to do do this? I came across a few questions previously
> on this topic but I am not able to get a concrete solution to make it work.
> Thanks.
>
> Anant.

I believe this is what vtkImageAppendComponents does:

http://www.vtk.org/doc/nightly/html/classvtkImageAppendComponents.html#_details

Look like we're missing an example :)

Thanks,

David



More information about the vtkusers mailing list