[Insight-users] Cropping Problem
Luis Ibanez
luis.ibanez at kitware.com
Sat Apr 17 19:12:33 EDT 2010
Hi Yusuf,
You should start by separating the segmentation
problem from the visualization problem.
Please do the following:
0) Just after you call:
reader->SetFileNames( fileNames );
reader->Update();
add
reader->GetOutput()->Print( std::cout );
then
1) Run the ITK segmentation pipeline until you
get the segmented image, and save it as a
MetaImage file (with extension .mhd)
2) Post the content of the resulting .mhd file
back to the list, as well as the print out of
the statement:
reader->GetOutput()->Print( std::cout );
3) Use Paraview (www.paraview.org) to load the
resulting image and extracting an iso-surface.
Compare that iso-surface with the one that
you get by directly from the DICOM image.
(and let us know what you find).
With the information from (2) we should be
able to identify if any geometrical information
is missing from the ITK processing pipeline.
Thanks
Luis
------------------------------------------------------------------------
On Thu, Apr 15, 2010 at 5:54 PM, Yusuf OEZBEK <nasil122002 at yahoo.de> wrote:
> Hello,
>
> Can anyone help me please? I have a problem with to cut (cropping) a 3D
> object, which I produced by the segmentation-method “watershed and region
> growing”. In the beginning I read the DICOM images with
> itkImageSeriesReader, then I run watershed or region growing algorithm, in
> order to connect itk with vtk and a 3D object produce and for the displaying
> of segmentation, I use vtkContourFilter. After segmentation of cropping the
> images I use vtkBoxClipDataSet, vtkDataSetSurfaceFilter and
> vtkPolyDataMapper, but the result is a black screen. When I read the
> images with vtkDICOMImageReader and then segmented with volume rendering or
> marching cubes, then it works completely well. The problem arises only for
> watershed and region growing Algorithm. Where is my mistake in the code,
> what am I doing wrong?
>
> To understand my problem better, please see my screenshots on the following
> link.
>
>
> http://www.wopsys.com/bilder/segmentation.html
>
>
> Thank you.
>
>
> __________________________________________________
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
> gegen Massenmails.
> http://mail.yahoo.com
>
> _____________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100417/e9138279/attachment-0001.htm>
More information about the Insight-users
mailing list