[vtkusers] [Insight-users] how to pass vtkimagedata to ITK
Sylvain Jaume
sylvain at csail.mit.edu
Wed Feb 17 23:33:52 EST 2010
Hi Ali,
You may want to read this recent thread:
http://www.itk.org/pipermail/insight-users/2010-February/035316.html
HTH,
Sylvain
On Wed, Feb 17, 2010 at 11:13 PM, Ali Habib <ali.mahmoud.habib at gmail.com> wrote:
> Dear All,
> I have vtk image data I want to pass it to ITK to use segmentation , any
> suggestion please
> vtk.vtkDICOMImageReader VDR = new vtk.vtkDICOMImageReader();
> VDR.SetDirectoryName(@"D:\work\Master
> Degree\DataSet\case2\DICOM\PA1\ST1\SE2");
> VDR.SetDataOrigin(0, 0, 0);
> VDR.Update();
> // decrease the dataset data for large data preprocessing
> vtkImageShrink3D VIS = new vtkImageShrink3D();
> VIS.SetShrinkFactors(2, 2, 2);
> VIS.SetInputConnection(VDR.GetOutputPort());
> VIS.Update();
> vtkImageThreshold VIT = new vtkImageThreshold();
> VIT.ThresholdBetween(200, 2000);
> VIT.SetInputConnection(VIS.GetOutputPort());
> VIT.Update();
> Best regards
> _____________________________________
> 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://www.kitware.com/products/protraining.html
>
> 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://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the vtkusers
mailing list