[ITK] [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/community/attachments/20150929/f961aab9/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list