<div dir="ltr">Dear All,<div><br></div><div>I have vtk image data I want to pass it to ITK to use segmentation , any suggestion please </div><div><br></div><div> vtk.vtkDICOMImageReader VDR = new vtk.vtkDICOMImageReader();</div>
<div> VDR.SetDirectoryName(@"D:\work\Master Degree\DataSet\case2\DICOM\PA1\ST1\SE2");</div><div> VDR.SetDataOrigin(0, 0, 0);</div><div> VDR.Update();</div><div><br></div><div> // decrease the dataset data for large data preprocessing </div>
<div><br></div><div> vtkImageShrink3D VIS = new vtkImageShrink3D();</div><div> VIS.SetShrinkFactors(2, 2, 2);</div><div> VIS.SetInputConnection(VDR.GetOutputPort());</div><div> VIS.Update();</div>
<div><br></div><div> vtkImageThreshold VIT = new vtkImageThreshold();</div><div> VIT.ThresholdBetween(200, 2000);</div><div> VIT.SetInputConnection(VIS.GetOutputPort());</div><div> VIT.Update();</div>
<div><br></div><div>Best regards </div></div>