Hi,<div><div><br></div><div>I&#39;ve already convert the dicom volume to .raw format using MRIconvert. The next step is to write it in .vtk format. Is there any way to realize that??</div><div><br></div><div>Thank you Jinzhong ^ ^</div>
<div>and thanks in advance</div><div><br></div><div>Best,</div><div>Yili</div><div><br><div class="gmail_quote">On Tue, Aug 11, 2009 at 3:14 PM, Yang, Jinzhong <span dir="ltr">&lt;<a href="mailto:jinzhong76@gmail.com">jinzhong76@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">








<div lang="EN-US" link="blue" vlink="purple">

<div>

<p><span style="font-size:11.0pt;color:#1F497D">Basically what you need is the DICOM image decoder. If your image
is stored in a series of files, you will need ImageSeriesReader. Here is an
example you may try:</span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p style="text-autospace:none"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:blue">  typedef</span><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;"> itk::ImageSeriesReader&lt;
ImageType &gt;     ReaderType;</span></p>

<p style="text-autospace:none"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">  <span style="color:blue">typedef</span>
itk::DICOMImageIO2                     
ImageIOType;</span></p>

<p><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;"> 
<span style="color:blue">typedef</span>
itk::DICOMSeriesFileNames              
SeriesFileNames;</span><span style="font-size:11.0pt;color:#1F497D"></span></p>

<p style="text-autospace:none"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">  </span></p>

<p style="text-autospace:none"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">  ImageIOType::Pointer gdcmIO =
ImageIOType::New();</span></p>

<p style="text-autospace:none"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">  SeriesFileNames::Pointer series =
SeriesFileNames::New();</span></p>

<p style="text-autospace:none"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">  series-&gt;SetDirectory(&lt;directory name
storing dicom files&gt;);</span></p>

<p style="text-autospace:none"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;"> </span></p>

<p style="text-autospace:none"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">  ReaderType::Pointer reader =
ReaderType::New();</span></p>

<p style="text-autospace:none"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">  <span style="color:blue">const</span>
ReaderType::FileNamesContainer &amp; filenames = series-&gt;GetFileNames();</span></p>

<p style="text-autospace:none"><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;">  reader-&gt;SetFileNames(filenames);</span></p>

<p><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;"> 
reader-&gt;SetImageIO(gdcmIO);</span></p>

<p><span style="font-size:9.0pt;font-family:&quot;Courier New&quot;"> 
reader-&gt;Update();</span><span style="font-size:11.0pt;color:#1F497D"></span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p><span style="font-size:11.0pt;color:#1F497D">Good luck,</span></p>

<p><span style="font-size:11.0pt;color:#1F497D">-Jinzhong</span></p>

<p><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">

<p><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt">
<a href="mailto:insight-users-bounces@itk.org" target="_blank">insight-users-bounces@itk.org</a> [mailto:<a href="mailto:insight-users-bounces@itk.org" target="_blank">insight-users-bounces@itk.org</a>] <b>On
Behalf Of </b>Yili Pan<br>
<b>Sent:</b> Monday, August 10, 2009 12:13 PM<br>
<b>To:</b> <a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br>
<b>Subject:</b> [Insight-users] Convert dicom to raw</span></p>

</div><div><div></div><div class="h5">

<p> </p>

<p>Hi all ITK Gurus:</p>

<div>

<p> </p>

</div>

<div>

<p>I am trying to render dicom volume, but it seems that I have
to convert the files to raw format first. How can I do that?</p>

</div>

<div>

<p> </p>

</div>

<div>

<p>Is there any advice to render the dicom volume?</p>

</div>

<div>

<p> </p>

</div>

<div>

<p>Thanks ^ ^</p>

</div>

<div>

<p> </p>

</div>

<div>

<p>Best,</p>

</div>

<div>

<p>Yili Pan</p>

</div>

</div></div></div>

</div>


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