[ITK] [ITK-users] itk mhd header

Swetha Sharma swetha.bsharma at gmail.com
Thu Sep 15 09:11:06 EDT 2016


I am trying to read the file using an application outside itk.it can read
the regular .mhd but it failed when I input this.

When I investigated the header I found these tags hence the post

On Thu, 15 Sep 2016, 18:37 Lowekamp, Bradley (NIH/NLM/LHC) [C], <
blowekamp at mail.nih.gov> wrote:

> MetaIO does not have many formal fields. Those that are defined are here:
>
> https://itk.org/Wiki/ITK/MetaIO/Documentation
>
> MetaIO Image from ITK also writes out the ITK's Meta Data Dictionary along
> with the image. The dictionary can contain arbitrary information. These
> fields looks like they came from a NIFT file:
>
> https://brainder.org/2012/09/23/the-nifti-file-format/
>
> It is generally more productive to learn how to use existing libraries as
> opposed to hacking your own for IO. This help ensure that everyones files
> are compatible and usable.
>
> HTH,
> Brad
>
> > On Sep 15, 2016, at 3:26 AM, swetha <swetha.bsharma at gmail.com> wrote:
> >
> > Hi,
> >
> >  I have this mhd file header
> >
> > ObjectType = Image
> > NDims = 3
> > BinaryData = True
> > BinaryDataByteOrderMSB = False
> > CompressedData = False
> > TransformMatrix = 1 0 0 0 1 0 0 0 1
> > Offset = 0 0 0
> > CenterOfRotation = 0 0 0
> > AnatomicalOrientation = RAI
> > ElementSpacing = 1 1 1
> > bitpix = 8
> > cal_max = 256
> > cal_min = 0
> > datatype = 2
> > dim[0] = 4
> > dim[1] = 480
> > dim[2] = 480
> > dim[3] = 256
> > dim[4] = 1
> > dim[5] = 1
> > dim[6] = 0
> > dim[7] = 0
> > dim_info =
> > intent_code = 0
> > intent_p1 = 1.86143e+034
> > intent_p2 = 0
> > intent_p3 = 0
> > pixdim[0] = 0
> > pixdim[1] = 1
> > pixdim[2] = 1
> > pixdim[3] = 1
> > pixdim[4] = 0
> > pixdim[5] = 0
> > pixdim[6] = 0
> > pixdim[7] = 0
> > qform_code = 0
> > qoffset_x = 0
> > qoffset_y = 0
> > qoffset_z = 0
> > quatern_b = 0
> > quatern_c = 0
> > quatern_d = 0
> > scl_inter = 0
> > scl_slope = 1
> > sform_code = 0
> > slice_code =
> > slice_duration = 0
> > slice_end = 0
> > slice_start = 0
> > srow_x = 0 0 0 0
> > srow_y = 0 0 0 0
> > srow_z = 0 0 0 0
> > toffset = 0
> > vox_offset = 0
> > xyzt_units =
> > DimSize = 480 480 256
> > ElementType = MET_SHORT
> > ElementDataFile = usg2_-2.raw
> >
> > I want to know what the tags mean so that i can write a function to parse
> > and display the image.
> > -swetha
> >
> >
> >
> >
> > --
> > View this message in context:
> http://itk-insight-users.2283740.n2.nabble.com/itk-mhd-header-tp7589210.html
> > Sent from the ITK Insight Users mailing list archive at Nabble.com.
> > _____________________________________
> > 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.php
> >
> > 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://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160915/4dca2f83/attachment-0001.html>
-------------- next part --------------
_____________________________________
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.php

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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list