[Insight-users] How could I get part of information from a mhd file?

Dženan Zukić dzenanz at gmail.com
Wed Aug 3 07:34:23 EDT 2011


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

But you said you want to do the opposite, take a series of 2D images and
make one 3D mhd file?

HTH

On Tue, Aug 2, 2011 at 17:47, Mengqiu Tian <tianmengqiu at gmail.com> wrote:

> Hi all,
>
> I want to convert series of separate images into one image series, all my
> images are raw images and I have a mhd file.
> How could I get the number of images( NDims(3) ) and the name of each
> images from the mhd file?
>
> my mhd file as follows:
>
> NDims = 3
> DimSize = 570 670 9
> ElementSpacing = 0.333 0.333 0.333
> Position = 0 0 0
> ElementByteOrderMSB = False
> ElementNumberOfChannels = 3
> ElementType = MET_UCHAR
> ElementDataFile = LIST 2
> vw1001aRGB.raw
> vw1001bRGB.raw
> vw1001cRGB.raw
> vw1002aRGB.raw
> vw1002bRGB.raw
> vw1002cRGB.raw
> vw1003aRGB.raw
> vw1003bRGB.raw
> vw1003cRGB.raw
>
>
> Thanks a lot.  :)
>
> Mengqiu
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110803/b1b9d299/attachment.htm>


More information about the Insight-users mailing list