[ITK-users] Adding two images

Alex Med alex.med.marco at gmail.com
Tue Sep 29 14:28:32 EDT 2015


HI,
in  blending two images what do we do for FIXING background whole 0-1 value
range
    this->blend  =
      vtkSmartPointer<vtkImageBlend>::New();
    blend->SetOpacity( 0, 1.0 );
    blend->SetOpacity( 1, 0.6 );
    blend->AddInputConnection( firstColorMapper->GetOutputPort() );
    blend->AddInputConnection( secondColorMapper->GetOutputPort() );
    blend->Update();

in this case fixed images is port : 0 but in during change foreground and
background will be changed is there any setting for blending (0-1)
background be Fixed
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20150929/f961aab9/attachment.html>


More information about the Insight-users mailing list