<br>Hi Yusuf,<br><br>Excellent.<br><br>Thanks for posting the screenshots.<br><br><br>They illustrate that the pipeline is working correctly<br>up to the output of the region growing filter.<br><br><br>You can now focus on getting the Watershed <br>
filter to work correctly by using as output image<br>an image of pixel type "unsigned long" and <br>making sure that it doesn't turn into "long long"<br>in your 64 bits machine.<br><br>Please post the screenshot of the Watershed<br>
output once you get it to work.<br><br><br> Thanks<br><br><br> Luis<br><br><br>-------------------------------------------------------------------<br><div class="gmail_quote">On Tue, May 25, 2010 at 4:14 PM, Yusuf OEZBEK <span dir="ltr"><<a href="mailto:nasil122002@yahoo.de">nasil122002@yahoo.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style=""><div>Hello Luis,<br></div><div><br></div><div>I have the.mhd files loaded with 3DSlicer. Here are the screenshots:</div>
<div><br></div><div>Output-Image of Region Growing:</div><div><span><a href="http://www.wopsys.com/bilder/regiongrowing_notcropped.JPG" target="_blank">http://www.wopsys.com/bilder/regiongrowing_notcropped.JPG</a></span></div>
<div><span><a href="http://www.wopsys.com/bilder/regiongrowing_cropped.JPG" target="_blank">http://www.wopsys.com/bilder/regiongrowing_cropped.JPG</a></span></div><div><br></div><div><br></div><div>Output-Image of DicomSeriesReadImageWrite2:</div>
<div><span><a href="http://www.wopsys.com/bilder/DicomSeriesReadImageWrite2.JPG" target="_blank">http://www.wopsys.com/bilder/DicomSeriesReadImageWrite2.JPG</a></span></div><div><br></div><div><br></div><div><br></div><div>
<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Thanks.<br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><div class="im"><hr size="1">
<b><span style="font-weight: bold;">Von:</span></b> Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>><br><b><span style="font-weight: bold;">An:</span></b> Yusuf OEZBEK <<a href="mailto:nasil122002@yahoo.de" target="_blank">nasil122002@yahoo.de</a>><br>
</div><b><span style="font-weight: bold;">CC:</span></b> ITK Mailinglist <<a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a>>; VTK Mailinglist <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>>; <a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a>; <a href="mailto:nasil122002@gmail.com" target="_blank">nasil122002@gmail.com</a><br>
<b><span style="font-weight: bold;">Gesendet:</span></b> Dienstag, den 25. Mai 2010, 17:00:30 Uhr<br><b><span style="font-weight: bold;">Betreff:</span></b> Re: [Insight-users]
visualization-problem after segmentation and cropping<br></font><div><div></div><div class="h5"><br>Hi Yusuf,<br><br><br>When you are debugging a pipeline you should<br>start by verifying that the data has been properly<br>
loaded in memory, and then you should proceed<br>to check out the output of every intermediate filter<br>in order: from source to final output.<br><br><br>Please start by doing the following:<br><br><br> Verify that you succeeded reading the DICOM series.<br>
<br> Simply write the output of the Series reader to<br> an output file.<br><br> This essentially the code that you will see in<br> the example:<br><br><br> Insight/Examples/IO/<br> DicomSeriesReadImageWrite2.cxx<br>
<br><br> Open that file with any visualization software<br><br> For example:<br><br> 1) Paraview. (<a href="http://www.paraview.org" target="_blank">http://www.paraview.org</a>) or<br> 2) Slicer, (<a href="http://www.slicer.org" target="_blank">http://www.slicer.org</a>) or<br>
3) SNAP, (<a href="http://sourceforge.net/projects/itk-snap/" target="_blank">http://sourceforge.net/projects/itk-snap/</a>) or<br> 4) VV (<a href="http://www.creatis.insa-lyon.fr/rio/vv" target="_blank">http://www.creatis.insa-lyon.fr/rio/vv</a>)<br>
<br><br>Please let us know if you manage to do that initial<br>test, (it will be great if you post a screen shot of<br>that output image)<br><br>and then we will guide you to the next step.<br><br><br><br> Regards,<br>
<br><br> Luis<br><br><br>--------------------------------------------------<br>On Mon, May 24, 2010 at 10:26 PM, Yusuf OEZBEK <<a href="mailto:nasil122002@yahoo.de" target="_blank">nasil122002@yahoo.de</a>> wrote:<br>
> Hello,<br>><br>> I have a problem with cut (cropping) and visualization a 3D image, which I<br>> produced by the segmentation-method “watershed and region
growing”. In the<br>> beginning I read the DICOM images with itkImageSeriesReader, then I run<br>> watershed or region growing algorithm, in order to connect itk with vtk and<br>> a 3D image produce and for the displaying of segmentation I use<br>
> vtkContourFilter. After segmentation for cropping the images I use<br>> vtkBoxClipDataSet and vtkDataSetSurfaceFilter, but the result is a black<br>> screen. When I read the images with vtkDICOMImageReader or<br>
> itkImageSeriesReader and then segmented with volume rendering, marching<br>> cubes watershed and region growing, then it works completely well. The<br>> problem arises only when cut for watershed and region growing algorithm.<br>
> What am I doing wrong?<br>><br>> To understand my problem better, please see my screenshots on the following<br>> link.<br>><br>><br>><br>> <a href="http://www.wopsys.com/bilder/segmentation.html" target="_blank">http://www.wopsys.com/bilder/segmentation.html</a><br>
><br>><br>><br>> To determine whether there missing of any geometrical informations. I had<br>> sent the following outputs of tests.<br>><br>> <a href="http://www.wopsys.com/Outputs/Output_MarchingCubes.txt" target="_blank">http://www.wopsys.com/Outputs/Output_MarchingCubes.txt</a><br>
> <a href="http://www.wopsys.com/Outputs/Output_VolumeRendering.txt" target="_blank">http://www.wopsys.com/Outputs/Output_VolumeRendering.txt</a><br>> <a href="http://www.wopsys.com/Outputs/Output_Watershed.txt" target="_blank">http://www.wopsys.com/Outputs/Output_Watershed.txt</a><br>
> <a href="http://www.wopsys.com/Outputs/Output_RegionGrowing.txt" target="_blank">http://www.wopsys.com/Outputs/Output_RegionGrowing.txt</a><br>><br>> Thanks.<br>><br>><br>> ________________________________<br>
> Von: Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>><br>> An: Yusuf OEZBEK <<a href="mailto:nasil122002@yahoo.de" target="_blank">nasil122002@yahoo.de</a>><br>
> CC: ITK Mailinglist <<a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a>>; VTK Mailinglist<br>> <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>>; <a href="mailto:nasil122002@gmail.com" target="_blank">nasil122002@gmail.com</a><br>
> Gesendet: Sonntag, den 18. April 2010, 1:12:33 Uhr<br>> Betreff: Re: [Insight-users] Cropping Problem<br>><br>><br>> Hi Yusuf,<br>><br>><br>> You should start by separating the segmentation<br>> problem from the visualization problem.<br>
><br>><br>> Please do the following:<br>><br>> 0) Just after you call:<br>><br>>
reader->SetFileNames( fileNames );<br>> reader->Update();<br>><br>> add<br>><br>> reader->GetOutput()->Print( std::cout );<br>><br>> then<br>><br>> 1) Run the ITK segmentation pipeline until you<br>
> get the segmented image, and save it as a<br>> MetaImage file (with extension .mhd)<br>><br>><br>> 2) Post the content of the resulting .mhd file<br>> back to the list, as well as the print out of<br>
> the statement:<br>><br>> reader->GetOutput()->Print( std::cout );<br>><br>><br><span>> 3) Use Paraview (<a href="http://www.paraview.org" target="_blank">www.paraview.org</a>) to load the</span><br>
> resulting image and extracting an iso-surface.<br>> Compare that iso-surface with the one that<br>> you get by directly from the DICOM image.<br>> (and let us know what you
find).<br>><br>><br>> With the information from (2) we should be<br>> able to identify if any geometrical information<br>> is missing from the ITK processing pipeline.<br>><br>><br>> Thanks<br>
><br>><br>> Luis<br>><br>><br>><br>><br>><br>> _____________________________________<br><span>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a></span><br>
><br>> Visit other Kitware open-source projects at<br>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>><br>> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>><br>> Please keep messages on-topic and check the ITK FAQ at:<br>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>> Follow this link to subscribe/unsubscribe:<br>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>><br>><br></div></div>
</div></div>
</div><br></div></blockquote></div><br>