<span class="Apple-style-span" style="font-family: verdana, sans-serif; ">If there is a way to get those filename from .mhd file, it employs using metaimage.h and buddies from D:\SDK\InsightToolkit-3.20.0\Utilities\MetaIO</span><div>

<font class="Apple-style-span" face="verdana, sans-serif"><br></font></div><div><font class="Apple-style-span" face="verdana, sans-serif">But you said you want to do the opposite, take a series of 2D images and make one 3D mhd file?</font></div>

<div><font class="Apple-style-span" face="verdana, sans-serif"><br></font></div><div><font class="Apple-style-span" face="verdana, sans-serif">HTH<br></font></div><div><div class="gmail_quote"><br></div><div class="gmail_quote">

On Tue, Aug 2, 2011 at 17:47, Mengqiu Tian <span dir="ltr">&lt;<a href="mailto:tianmengqiu@gmail.com">tianmengqiu@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;">

Hi all,<br><br>I want to convert series of separate images into one image series, all my images are raw images and I have a mhd file.<br>How could I get the number of images( NDims(3) ) and the name of each images from the mhd file?<br>


<br>my mhd file as follows:<br><br>NDims = 3<br>DimSize = 570 670 9<br>ElementSpacing = 0.333 0.333 0.333<br>Position = 0 0 0<br>ElementByteOrderMSB = False<br>ElementNumberOfChannels = 3<br>ElementType = MET_UCHAR<br>ElementDataFile = LIST 2<br>


vw1001aRGB.raw<br>vw1001bRGB.raw<br>vw1001cRGB.raw<br>vw1002aRGB.raw<br>vw1002bRGB.raw<br>vw1002cRGB.raw<br>vw1003aRGB.raw<br>vw1003bRGB.raw<br>vw1003cRGB.raw<br><br><br>Thanks a lot.  :)<br><font color="#888888"><br>Mengqiu<br>


</font><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>