<br>Dear Dan,<br><br>Thx for the reply. My Qn was &#39; instead of giving all image names, if i give only the folder name, the program must read all images in the folder and segregate the images as per series id. This facility available in ITK. 
<br><br>if this option currently not available in ManagedITK. just guide me to write code.<br><br>Thanks . Subbu<br><br><div><span class="gmail_quote">On 9/5/07, <b class="gmail_sendername">Dan Mueller</b> &lt;<a href="mailto:dan.muel@gmail.com">
dan.muel@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Subbu,<br><br>I&#39;m not quite sure I understand your question... Do you mean: how do I
<br>read a 3-D image from a series of 2-D images using ManagedITK?<br><br>If you mean the above then use the following C# code (make sure you<br>add ManagedITK.Common.dll and ManagedITK.IO.dll as references to your<br>project):
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;// Read series<br>&nbsp;&nbsp;&nbsp;&nbsp;String[] filenames = new String[]{&quot;file1.png&quot;,&quot;file2.png&quot;,&quot;file3.png&quot;};<br>&nbsp;&nbsp;&nbsp;&nbsp;itk.itkImageSeriesReader_IUC3 reader = itk.itkImageSeriesReader_IUC3.New();<br>
&nbsp;&nbsp;&nbsp;&nbsp;reader.SetFileNames(filenames);<br>&nbsp;&nbsp;&nbsp;&nbsp;reader.Update();<br><br>&nbsp;&nbsp;&nbsp;&nbsp;// Get resultant image<br>&nbsp;&nbsp;&nbsp;&nbsp;itk.itkImage_UC3 image = itk.itkImage_UC3.New();<br>&nbsp;&nbsp;&nbsp;&nbsp;reader.GetOutput(image);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;// Write image<br>&nbsp;&nbsp;&nbsp;&nbsp;itk.itkImageFileWriter_IUC3
 writer = itk.itkImageFileWriter_IUC3.New();<br>&nbsp;&nbsp;&nbsp;&nbsp;writer.SetInput(image);<br>&nbsp;&nbsp;&nbsp;&nbsp;writer.FileName = &quot;output.mhd&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;writer.Update();<br><br>If you mean something else, can you please clarify?<br><br>Cheers, Dan
<br><br>On 05/09/07, Subbu &lt;<a href="mailto:subbu.iitb@gmail.com">subbu.iitb@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; Hi,<br>&gt;<br>&gt; does anyone know how to read a series of images using managed ITK for<br>&gt; creating 3D model of it.
<br>&gt;<br>&gt;<br>&gt; Regards . Subbu<br>&gt; _______________________________________________<br>&gt; Insight-users mailing list<br>&gt; <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users">
http://www.itk.org/mailman/listinfo/insight-users</a><br></blockquote></div><br><br clear="all"><br>