I don't know abut the segmented DICOM files you wrote. I'd have see see that code. However, I'm sure the .mha files will work.<br><br><div class="gmail_quote">On Tue, Aug 30, 2011 at 11:14 AM, khaled danwar <span dir="ltr"><<a href="mailto:khaled.danwar53@gmail.com">khaled.danwar53@gmail.com</a>></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;">So, instead of writing the segmented outputs to new dicom files, write them to .mha files and then read them for use through marching cubes, is that right?<div>
<br></div><div> Just so that I know, are.mha files the usual files you would use for 3d rendering, they have a dimension of 3. I only ask because I would've assumed that's the case for the segmented dicom files I make and yet the marching cubes complained, as mentioned previously.</div>
<div><br></div><div>Thanks for the info<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Tue, Aug 30, 2011 at 3:46 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></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;">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>
<div><div></div><div><br><div class="gmail_quote">On Tue, Aug 30, 2011 at 9:12 AM, khaled danwar <span dir="ltr"><<a href="mailto:khaled.danwar53@gmail.com" target="_blank">khaled.danwar53@gmail.com</a>></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'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'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 " DATADIR/headsq/quarter" and 'Input Volume' (is the latter just a series of dicom files?)).</div>
<div><br></div><div>Thanks</div>
</blockquote></div><br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br>