Hello everybody,<br><br>I want to get the name of the datafile in any metafile.<br><br>The header of a metafile is, for a mhd file for example :<br><br>ObjectType = Image<br>NDims = 2<br>BinaryData = True<br>BinaryDataByteOrderMSB = False
<br>TransformMatrix = 1 0 0 1<br>Offset = 0 0<br>CenterOfRotation = 0 0<br>ElementSpacing = 1.17188 1.17188<br>DimSize = 256 256<br>AnatomicalOrientation = ??<br>ElementType = MET_USHORT<br>ElementDataFile = moving.raw<br>
<br>If i have :<br>InputImageType::Pointer initial_image = reader->GetOutput();<br>I know how to get <br><br>- the size : initial_image->GetBufferedRegion().GetSize();), <br>- the spacing : initial_image->GetSpacing();
<br>- ...<br><br>but how do I get the datafile name (here : moving.raw) ?<br><br>Thank you,<br><br>PV<br>