[vtkusers] Displaying two images using different colors

Anka Kochanowska anka at bic.mni.mcgill.ca
Thu Mar 27 08:37:36 EDT 2008


Hi!
I think, vtkImageBlend is what you need.
Anka

Patrick D. Emond wrote:
> Hi vtkusers,
>
> I was wondering if someone could help point me in the right direction 
> to get a desired result.  I've got two scalar images (vtkImageData), 
> both with a single component, that I'd like to display as a single 
> image where one image shows as a color (say red) and the other as a 
> different color (say green) such that the colors are combined where 
> the images overlap (red+green=yellow) or black where both images have 
> intensities of 0.
>
> I've looked at vtkImageAppendComponents to do the job, but when I try 
> displaying its output I still get a grayscale image instead of the 
> multicolor image I was expecting.
>
> Thanks,
> Patrick
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: 
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list