[Insight-users] How to get ElementDataFile ?

pierre villard pvillard.itk at gmail.com
Fri Dec 22 16:13:31 EST 2006


Hello everybody,

I want to get the name of the datafile in any metafile.

The header of a metafile is, for a mhd file  for example :

ObjectType = Image
NDims = 2
BinaryData = True
BinaryDataByteOrderMSB = False
TransformMatrix = 1 0 0 1
Offset = 0 0
CenterOfRotation = 0 0
ElementSpacing = 1.17188 1.17188
DimSize = 256 256
AnatomicalOrientation = ??
ElementType = MET_USHORT
ElementDataFile = moving.raw

If  i have :
InputImageType::Pointer initial_image = reader->GetOutput();
I know how to get

- the size : initial_image->GetBufferedRegion().GetSize();),
- the spacing : initial_image->GetSpacing();
- ...

but how do I get the datafile name (here : moving.raw) ?

Thank you,

PV
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20061222/5b3fa6d7/attachment.html


More information about the Insight-users mailing list