<br>Dear Dan,<br><br>Thx for the reply. My Qn was ' 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> <<a href="mailto:dan.muel@gmail.com">
dan.muel@gmail.com</a>> 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'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> // Read series<br> String[] filenames = new String[]{"file1.png","file2.png","file3.png"};<br> itk.itkImageSeriesReader_IUC3 reader = itk.itkImageSeriesReader_IUC3.New();<br>
reader.SetFileNames(filenames);<br> reader.Update();<br><br> // Get resultant image<br> itk.itkImage_UC3 image = itk.itkImage_UC3.New();<br> reader.GetOutput(image);<br><br> // Write image<br> itk.itkImageFileWriter_IUC3
writer = itk.itkImageFileWriter_IUC3.New();<br> writer.SetInput(image);<br> writer.FileName = "output.mhd";<br> writer.Update();<br><br>If you mean something else, can you please clarify?<br><br>Cheers, Dan
<br><br>On 05/09/07, Subbu <<a href="mailto:subbu.iitb@gmail.com">subbu.iitb@gmail.com</a>> wrote:<br>><br>> Hi,<br>><br>> does anyone know how to read a series of images using managed ITK for<br>> creating 3D model of it.
<br>><br>><br>> Regards . Subbu<br>> _______________________________________________<br>> Insight-users mailing list<br>> <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>> <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>