[Insight-users] Display object with segmented region..

Luis Ibanez luis.ibanez at kitware.com
Tue, 06 Apr 2004 15:47:21 -0400


Hi Yasser,

A typical combination is to use the
vtkImageBlend filter.

http://www.vtk.org/doc/nightly/html/classvtkImageBlend.html

This allows you to superimpose the segmentation
(with some transparency) on top of the original
image.


   Regards,



      Luis


----------------------------

yasser salman wrote:

> hi all..,
> when i'm using ConnectedThresholdImageFilter i extract
> the region and can view it speratly in 3D space, how
> can i visual both my object(brain ) and the labeled
> region(tumor) , not by extracted the segmented region
> i need only to segment it at the object it self ( just
> change color of the segmented region),
> thanx ,, 
> yasser..,
> connectedThreshold->SetInput( smoothing->GetOutput()
> );
>    connectedThreshold->SetLower(  L_threshold  );
>   connectedThreshold->SetUpper(  H_threshold);
>   connectedThreshold->SetReplaceValue(
> SegmentedRegionColor );
> 
> 
>   typedef ConnectedFilterType::IndexType IndexType;
>   IndexType seed;
>   seed[0] = axi;
>   seed[1] = cron;
>   seed[2] = sag;
> 
>   connectedThreshold->SetSeed( seed );
>   ITK2VTKconnector->SetInput(connectedThreshold
> ->GetOutput());
>  
> ITK2VTKconnector->GetImporter()->SetDataScalarTypeToUnsignedChar();
> 
> ,,,,,to Vtk to visualize the segmented region only 
> 
> 
>