[vtkusers] A LUT for each image in vtkImageBlend

Luis Roberto P. Paula luisrpp at gmail.com
Mon Jun 28 23:16:48 EDT 2010


Hi All,

I have two images:

vtkImageData object;  // Contains the object of interest - Grey scale image (0 - 256)
vtkImageData marker;  // Just the marker for the object - Binary Image with same size of 'object'

I need to display the marker over the object in a GUI. To do that, I`m using the vtkImageBlend:

   vtkImageBlend* blend = vtkImageBlend::New();
   blend->RemoveAllInputs();
   blend->AddInput(object);
   blend->AddInput(marker);
   blend->SetOpacity(1, opacity);
   blend->Update();

Then, I'm setting the output image to a vtkImageViewer2.

So far so good, but the problem is that I have to control the opacity to see the marker.

Is it possible to set a LUT for each image in vtkImageBlend, so I can set the marker a different color for the marker, without the need to set opacity? 

If this is not the correct approach to do this kind of effect, could someone give me some guidance?

Thanks & Regards,
Luis



More information about the vtkusers mailing list