[vtkusers] Marching cubes rendering

Bill Lorensen bill.lorensen at gmail.com
Tue Aug 30 11:22:54 EDT 2011


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.

On Tue, Aug 30, 2011 at 11:14 AM, khaled danwar
<khaled.danwar53 at gmail.com>wrote:

> 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?
>
>  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.
>
> Thanks for the info
>
>
> On Tue, Aug 30, 2011 at 3:46 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:
>
>> 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.
>>
>> On Tue, Aug 30, 2011 at 9:12 AM, khaled danwar <khaled.danwar53 at gmail.com
>> > wrote:
>>
>>> Hi Bill,
>>>
>>> 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.
>>>
>>> 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?)).
>>>
>>> Thanks
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110830/7085ca25/attachment.htm>


More information about the vtkusers mailing list