[Insight-users] (no subject)

yasser salman yass71 at yahoo.com
Sun, 18 Apr 2004 13:34:01 -0700 (PDT)


Hi All..,
i'm using itkConnectedThresholdImageFilter to segment
a region in 3D , it works good , but when i change the
Value in SetReplaceValue() The *Shape* of the
segmented Region Changed.., i read that this function
used  to  replace thresholded pixels. Pixels that lie
* within Lower and Upper  will be replaced with this
value. so why the shape
 changed ? i expect changes in Contrast or
brightness.., can any Body Help me to understand this?
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 );
 
connectedThreshold->Update();
 ITK2VTKconnector->SetInput(connectedThreshold
->GetOutput());
 
ITK2VTKconnector->GetImporter()->SetDataScalarTypeToUnsignedChar();
//
.... To vtk pipeline.....
//...


	
		
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash