[Insight-users] Re : MetaImageWriters!! - Separating Data from Header

Luis Ibanez luis.ibanez@kitware.com
Fri, 20 Dec 2002 12:34:37 -0500


Hi digvijay

Your code for selecting to write the MetaImage
file in two parts (raw data & header) looks ok.

The problem is that you selected the only
filename that cannot be used for the data
file:  "LOCAL".

The string "LOCAL" is used by the MetaImageIO
object as an indication that the binary data
is to be stored along with the header in a
single file.

Please use *any* other filename   :-)

For example,

   metaWriter->SetDataFileName( "ThisIsNotLOCAL" );

or

   metaWriter->SetDataFileName( "IamABinaryFile.raw" );


BTW, Just in case you haven't looked at it yet,
there is an example on the use of the BinaryThreshold
filter on the directory:

      Insight/Examples/Filtering

the filename is:

    BinaryThresholdImageFilter.cxx



Please let us know if you encounter any problem,


   Thanks


    Luis