[vtkusers] [Insight-users] how to pass vtkimagedata to ITK
Bryn Lloyd
blloyd at vision.ee.ethz.ch
Thu Feb 18 03:04:42 EST 2010
Have a look at the article on connecting ITK and VTK:
http://www.kitware.com/products/archive/kitware_quarterly0507.pdf
/Bryn
Sylvain Jaume wrote:
> 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
>>
>>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
--
-------------------------------------------------
Bryn Lloyd
Computer Vision Laboratory
ETH Zürich, Sternwartstrasse 7, ETF C110
CH - 8092 Zürich, Switzerland
Tel: +41 44 63 26668
Fax: +41 44 63 21199
-------------------------------------------------
More information about the vtkusers
mailing list