[vtkusers] vtkBlend Output
David Gobbi
david.gobbi at gmail.com
Mon Nov 1 21:27:40 EDT 2010
Hi Alexis,
Have you tried it without the stencil, for comparison? The
vtkImplicitFunctionToImageStencil filter is very slow.
David
On Mon, Nov 1, 2010 at 5:57 PM, Alexis Cheng <acheng_1221 at hotmail.com> wrote:
> 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
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK 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