[Insight-users] how to give a color to the segmented region.
   
    Luis Ibanez
     
    luis.ibanez at kitware.com
       
    Fri, 16 Apr 2004 15:24:29 -0400
    
    
  
Hi Yasser,
Please look at the example of the "LiverTumorSegmentation"
application under
    InsightApplications/
               LiverTumorSegmentation
                      LiverTumorSegmentation.cxx
Starting in line 49 you will find the following code:
   m_vtkImageBlender = vtkImageBlend::New();
   m_vtkImageBlender->SetInput( 0, m_ITK2VTKAdaptor->GetOutput() );
   m_vtkImageBlender->SetInput( 1,
                       m_SegmentedVolumeITK2VTKAdaptor->GetOutput() );
   m_vtkImageBlender->SetOpacity(0, 1.0 - m_SegmentedVolumeOpacity );
   m_vtkImageBlender->SetOpacity(1, m_SegmentedVolumeOpacity );
Regards,
    Luis
------------------
yasser salman wrote:
> hi luis , 
> 
> i segmented region from series of dicom files using
> itkimagesConnectedThresholdImageFilter also i
> displayed the segmented region in 3D sapce using Vtk i
> need to color this segmented region to "look"
> difference when i display it with the Whole object,
> 
> thanks luis ,
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online by April 15th
> http://taxes.yahoo.com/filing.html
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>