I suggest using the meta file format to save your segmented 3d volume. In your itkImageWriter, set the filename to something.mha. Likewise on the reader. <br><br><div class="gmail_quote">On Tue, Aug 30, 2011 at 9:12 AM, khaled danwar <span dir="ltr">&lt;<a href="mailto:khaled.danwar53@gmail.com">khaled.danwar53@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 Bill,<div><br></div><div>Attached is the c++ file, thanks for any help you can give. I&#39;m suspecting that I am not writing my segmentation outputs to their files correctly, but, then again, I am very new to itk and vtk and I could be wrong. Sorry about the code being untidy and not organized; I wanted to get the final result before anything else.</div>

<div><br></div><div>I&#39;ve done some researching and found that particular vtk examples in the Medical folder were suggested (ie Medical1, Medical2, Medical3.cxx and especially GenerateModelsFromLabel.cxx, the last one tends to be suited to getting the 3d render I want after segmentation, but Im not sure what kind of files they are asking for as inputs, ie &quot; DATADIR/headsq/quarter&quot; and &#39;Input Volume&#39; (is the latter just a series of dicom files?)).</div>

<div><br></div><div>Thanks</div>
</blockquote></div><br>