[vtkusers] put RGB into vtkImageData from array
Anant Vemuri
ajar108 at gmail.com
Wed May 5 00:37:17 EDT 2010
thank you David, that was helpful, I got my app running. I was using this
filter earlier but copying my data wrong.
I had another question, if someone could help me out. I have a 3D array of
unsigned char. Is there a filter in VTK that can select only a portion like
one dimension in the array.
Thanks,
Anant.
-----------
Anant S. Vemuri
email: ajar108 at gmail.com
On Wed, May 5, 2010 at 8:22 AM, David Doria
<daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> wrote:
> On Tue, May 4, 2010 at 7:07 AM, David Doria <daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> > wrote:
>
>> 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.
>>
>>
> Here is a demonstration:
>
> http://www.vtk.org/Wiki/VTK/Examples/Images/CombiningRGBChannels
> <http://www.vtk.org/Wiki/VTK/Examples/Images/CombiningRGBChannels>
> Hope this helps!
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100505/84153251/attachment.htm>
More information about the vtkusers
mailing list