[vtkusers] vtkBlend Output

Alexis Cheng acheng_1221 at hotmail.com
Mon Nov 1 19:57:41 EDT 2010


Hi all,

Is vtkBlend extremely resource intensive? I have a following piece of code running: FinalImage is a vtkImageData object, MTImage is a vtkImageData object, and blend1 is a vtkImageBlend object.

        blend1->SetStencil(dataToStencil->GetOutput());
        blend1->AddInput(MTImage);
        blend1->AddInput(BlackImage);
        blend1->SetOpacity(0,0.5);
        blend1->SetOpacity(1,0.5);

        if(OutOfView)
        {
            FinalImage = MTImage;
        }
        else
        {
            FinalImage = blend1->GetOutput();
        }
        FinalImage->Update();

The fps of my display decreases dramatically whenever the output from blend is requested. Is this behaviour expected? Thanks in advance.

Cheers,
Alexis Cheng
Electrical Engineering
University of British Columbia
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101101/74d4768e/attachment.htm>


More information about the vtkusers mailing list