[ITK] [ITK-dev] Blending dicom images
Marco Dev
marco.dev.open at gmail.com
Wed Sep 16 01:23:04 EDT 2015
Hi,
I try to bending two dicom images via itk reader and visualization by VTK
as you know for blending
in vtk use this such as line code follow bellow :
vtkSmartPointer<vtkImageMapToColors> firstColorMapper =
vtkSmartPointer<vtkImageMapToColors>::New();
* firstColorMapper->SetInputConnection( imgReader->GetOutputPort() ); //
vtk reader firstColorMapper->SetInputData( image ); // itk reader *
firstColorMapper->SetLookupTable( imgFirstColorMap );
vtkSmartPointer<vtkImageBlend> imgBlender =
vtkSmartPointer<vtkImageBlend>::New();
imgBlender->SetOpacity( 0, 0.5 );
imgBlender->SetOpacity( 1, 1.0 );
imgBlender->AddInputConnection( firstColorMapper->GetOutputPort() );
imgBlender->AddInputConnection( secondColorMapper->GetOutputPort() );
But this pipeline for vtk reader (// vtk reader) via
*SetInputConnection is correct *
But for itk reader no effect Opacity and ...
*in totally I want to Blend two dicom images via itk reader* can you give
me a guide line
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150916/61d7e9fc/attachment-0001.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://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-developers
More information about the Community
mailing list