<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:"times new roman", "new york", "times", serif;font-size:12pt"><DIV>Hello,<BR></DIV><DIV><BR></DIV><DIV>Sorry but, I wait since three weeks for an answer</DIV><DIV style="font-family:times new roman, new york, times, serif;font-size:12pt"><BR><DIV style="font-family:times new roman, new york, times, serif;font-size:12pt"><FONT size="2" face="Tahoma"><HR size="1"><B><SPAN style="font-weight: bold;">Von:</SPAN></B> Yusuf OEZBEK <nasil122002@yahoo.de><BR><B><SPAN style="font-weight: bold;">An:</SPAN></B> Luis Ibanez <luis.ibanez@kitware.com>; ITK Mailinglist <insight-users@itk.org>; VTK Mailinglist <vtkusers@vtk.org><BR><B><SPAN style="font-weight: bold;">CC:</SPAN></B> nasil122002@gmail.com<BR><B><SPAN style="font-weight: bold;">Gesendet:</SPAN></B> Freitag, den 23. April 2010, 23:57:34 Uhr<BR><B><SPAN style="font-weight:
bold;">Betreff:</SPAN></B> Re: [Insight-users] Cropping Problem<BR></FONT><BR><DIV style=""><DIV>Hello, <BR></DIV><DIV><BR></DIV><DIV>Here are the outputs/results for volume rendering, marching cubes, watershed and region growing segmentation. After the segmentation (in itk) i have the .mhd files saved for both segmentations (watershed and region growing). After this I wanted to the results load into ParaView. But in both files are nothing to see and always get the errors</DIV><DIV>"ERROR: In .. \ .. \ .. \ src \ server \ Filters \ vtkTexturePainter.cxx, line 287 vtkTexturePainter (00000000082D23E0): Incorrect dimensionality. " and </DIV><DIV>"ERROR: In .. \ .. \ .. \ src \ VTK \ IO \ vtkMetaImageReader.cxx, line 105 vtkMetaImageReader (00000000123D7000): Unknown data type: 11 "<BR></DIV><DIV><BR></DIV><DIV><BR></DIV><DIV>Outputs of "reader->GetOutput()->Print( std::cout
);"</DIV><DIV><BR></DIV><DIV><SPAN><A rel="nofollow" target="_blank" href="http://www.wopsys.com/Outputs/Output_MarchingCubes.txt">http://www.wopsys.com/Outputs/Output_MarchingCubes.txt</A></SPAN></DIV><DIV><SPAN><A rel="nofollow" target="_blank" href="http://www.wopsys.com/Outputs/Output_VolumeRendering.txt">http://www.wopsys.com/Outputs/Output_VolumeRendering.txt</A></SPAN></DIV><DIV><BR></DIV><DIV><SPAN><A rel="nofollow" target="_blank" href="http://www.wopsys.com/Outputs/Output_Watershed.txt">http://www.wopsys.com/Outputs/Output_Watershed.txt</A></SPAN></DIV><DIV><SPAN><A rel="nofollow" target="_blank" href="http://www.wopsys.com/Outputs/Output_RegionGrowing.txt">http://www.wopsys.com/Outputs/Output_RegionGrowing.txt</A></SPAN></DIV><DIV><BR></DIV><DIV><BR></DIV><DIV>and the .mhd Files</DIV><DIV><BR></DIV><DIV><SPAN><A rel="nofollow" target="_blank"
href="http://www.wopsys.com/Outputs/RegionGrowing.mhd">http://www.wopsys.com/Outputs/RegionGrowing.mhd</A></SPAN><BR><SPAN><A rel="nofollow" target="_blank" href="http://www.wopsys.com/Outputs/">http://www.wopsys.com/Outputs/</A></SPAN>RegionGrowing.raw</DIV><DIV><BR><SPAN><A rel="nofollow" target="_blank" href="http://www.wopsys.com/Outputs/Watershed.mhd">http://www.wopsys.com/Outputs/Watershed.mhd</A></SPAN><BR><SPAN><A rel="nofollow" target="_blank" href="http://www.wopsys.com/Outputs/">http://www.wopsys.com/Outputs/</A></SPAN>Watershed.raw<BR></DIV><DIV><BR></DIV><DIV><BR></DIV><DIV>All as .zip</DIV><DIV><BR></DIV><DIV><SPAN><A rel="nofollow" target="_blank" href="http://www.wopsys.com/Outputs.zip">http://www.wopsys.com/Outputs.zip</A></SPAN></DIV><DIV><BR></DIV><DIV><BR></DIV><DIV><BR></DIV><DIV>Thank you.<BR><DIV style="font-family:times new roman, new york, times, serif;font-size:12pt;"><FONT size="2" face="Tahoma"><HR size="1"><B><SPAN
style="font-weight:bold;">Von:</SPAN></B> Luis Ibanez <luis.ibanez@kitware.com><BR><B><SPAN style="font-weight:bold;">An:</SPAN></B> Yusuf OEZBEK <nasil122002@yahoo.de><BR><B><SPAN style="font-weight:bold;">CC:</SPAN></B> ITK Mailinglist <insight-users@itk.org>; VTK Mailinglist <vtkusers@vtk.org>; nasil122002@gmail.com<BR><B><SPAN style="font-weight:bold;">Gesendet:</SPAN></B> Sonntag, den 18. April 2010, 1:12:33 Uhr<BR><B><SPAN style="font-weight:bold;">Betreff:</SPAN></B> Re: [Insight-users] Cropping Problem<BR></FONT><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>3) Use Paraview (<A rel="nofollow" target="_blank" href="http://www.paraview.org">www.paraview.org</A>) to load the<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><DIV class="gmail_quote">On Thu, Apr 15, 2010 at 5:54 PM, Yusuf OEZBEK <SPAN dir="ltr"><<A rel="nofollow" ymailto="mailto:nasil122002@yahoo.de" target="_blank" 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>
<P class="MsoNormal" style="line-height:150%;"><SPAN lang="EN-US">Hello,</SPAN></P>
<P class="MsoNormal" style="line-height:150%;"><SPAN lang="EN-US">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. <SPAN> </SPAN>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?<SPAN> </SPAN></SPAN></P>
<P class="MsoNormal" style="line-height:150%;"><SPAN lang="EN-US">To understand my problem better, please see my screenshots on the
following link.</SPAN></P><P class="MsoNormal" style="line-height:150%;"><SPAN lang="EN-US"><BR></SPAN></P><P class="MsoNormal" style="line-height:150%;"><SPAN lang="EN-US"><SPAN><A rel="nofollow" target="_blank" href="http://www.wopsys.com/bilder/segmentation.html">http://www.wopsys.com/bilder/segmentation.html</A></SPAN><BR>
</SPAN></P><P class="MsoNormal" style="line-height:150%;"><SPAN lang="EN-US"><BR></SPAN></P>
<P class="MsoNormal" style="line-height:150%;"><SPAN lang="EN-US">Thank you.</SPAN></P><BR></DIV><DIV class="hm">
</DIV></DIV><DIV class="hm"><BR>__________________________________________________<BR>Do You Yahoo!?<BR>Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. <BR><A rel="nofollow" target="_blank" href="http://mail.yahoo.com">http://mail.yahoo.com</A> </DIV>
</DIV><BR>_____________________________________<BR>
Powered by <A rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</A><BR>
<BR>
Visit other Kitware open-source projects at<BR>
<A rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</A><BR>
<BR>
Kitware offers ITK Training Courses, for more information visit:<BR>
<A rel="nofollow" target="_blank" href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</A><BR>
<BR>
Please keep messages on-topic and check the ITK FAQ at:<BR>
<A rel="nofollow" target="_blank" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</A><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<A rel="nofollow" target="_blank" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</A><BR>
<BR></BLOCKQUOTE></DIV><BR>
</DIV></DIV>
</DIV><BR>__________________________________________________<BR>Do You Yahoo!?<BR>Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. <BR><SPAN><A target="_blank" href="http://mail.yahoo.com">http://mail.yahoo.com</A> </SPAN></DIV></DIV>
</div><br></body></html>