MarchingCubes is meant to run on continuous data. If you want to generate a surface from the segmented data, I suggest using DiscreteMarchingCubes. <br><br>Here is a wiki example that uses DiscreteMacrhingCubes<br><br><a href="http://itk.org/Wiki/VTK/Examples/Cxx/Medical/GenerateModelsFromLabels">http://itk.org/Wiki/VTK/Examples/Cxx/Medical/GenerateModelsFromLabels</a><br>
<br><br><div class="gmail_quote">On Thu, Sep 15, 2011 at 8:39 AM, John Hiller <span dir="ltr">&lt;<a href="mailto:john.hiller53@gmail.com">john.hiller53@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi vtk users<div><br></div><div>I&#39;m new to vtk and vtk (sorry if this question doesn&#39;t apply to vtk).</div><div><br></div><div>Okay, so this is what I&#39;m doing:</div><div>1) read a dicom series, I process each dicom slice individually</div>

<div>2) pick the segmentation points on a particular dicom slice</div><div>3) segment using confidence connected filter and save (or write to a file in other words) the result to a .mha file</div><div>4) Continuously do this for each dicom slice to get series of .mha files</div>

<div>5) Once all that is done, I attempt to use Marching cubes from vtk to render a 3D surface image from the .mha files.</div><div><br></div><div>Everything works with no errors, its just that the vk window comes up black (showing nothing). I&#39;m pretty sure the .mha files contain something (they&#39;re round about the same size as the original dicom file). I did the cout &lt;&lt; reader-&gt;getOutput(), and it outputs information. I&#39;m presuming that I am using vtk MarchingCubes incorrectly.</div>

<div><br></div><div>Any advice would be helpful</div><div>Thanks</div><div>John</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>