STIR
6.2.0
|
Copy contents of an ECAT7 header from 1 file to another. More...
#include "stir/Succeeded.h"
#include "stir/utilities.h"
#include "stir/IO/stir_ecat7.h"
#include "stir/warning.h"
#include "stir/error.h"
#include <iostream>
#include <string>
#include <stdio.h>
#include <errno.h>
Macros | |
#define | STIR_DO_IT(x) out_sh.x = in_sh.x; |
Functions | |
void | copy_subheader (Image_subheader &out_sh, const Image_subheader &in_sh) |
void | copy_subheader (Image_subheader &out_sh, const Scan3D_subheader &in_sh) |
void | copy_subheader (Scan3D_subheader &out_sh, const Scan3D_subheader &in_sh) |
void | copy_subheader (Attn_subheader &out_sh, const Attn_subheader &in_sh) |
void | copy_subheader (MatrixData *data_out, const MatrixData *data_in) |
void | update_main_header (Main_header &mh_out, const Main_header &mh_in) |
Succeeded | copy_main_header (MatrixFile *mout_ptr, MatrixFile *min_ptr) |
ostream & | operator<< (ostream &s, const ECAT_dataset_spec &spec) |
Succeeded | mat_write_any_subheader (MatrixData *data) |
int | main (int argc, char *argv[]) |
Copy contents of an ECAT7 header from 1 file to another.
To copy the main header:
copy_ecat7_header [--copy] output_ECAT7_name input_ECAT7_name
without –copy, num_planes etc are preserved.
To copy a subheader (but keeping essential info)
copy_ecat7_header output_ECAT7_name f,g,d,b input_ECAT7_name f,g,d,b