next up previous
Next: add_description() Up: Brain Volume I/O Handling Previous: copy_volume()

copy_format_attributes()  

Transfer file format attributes between headers



Synopsis


void
copy_format_attributes( header *hdr_dest, header *hdr_src )


Description
Copies information from hdr_src to hdr_dest about file format and file compression.

Use this function if you want an output file to have the same file format (XPRIME/VAPET/ANALYZE) and compression as an input file.

Usage

  header *hdr1, *hdr2;
  hdr1 = new_header();
  hdr2 = new_header();
  read_volume("inputvolume" ....

 ..  compute data for output volume

  hdr2 = copy_attr(hdr2, hdr1);
  write_volume("output", hdr2, data2); // Now the output file gets
                                       // to be same format and
                                       // compression as input file
  ..
  free_header(hdr1);
  free_header(hdr2);

Revision


1.0  29/10-96   Ulrik Kjems


Program listing






Ulrik Kjems
6/3/1998