STIR  6.2.0
Functions
ifheaders_for_ecat7.cxx File Reference

Utility to make Interfile headers for ECAT7 data. More...

#include "stir/ProjDataInfo.h"
#include "stir/ProjDataFromStream.h"
#include "stir/IO/interfile.h"
#include "stir/utilities.h"
#include "stir/IO/stir_ecat7.h"
#include <iostream>
#include <fstream>
#include <string>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>

Functions

int main (int argc, char **argv)
 

Detailed Description

Utility to make Interfile headers for ECAT7 data.

Author
Kris Thielemans

Usage: $File$ ecat7_filename.

This will attempt to write interfile headers 'pointing into' the ECAT7 file.

A question will be asked if all data sets should be processed, or only a single one.

The header filenames will be of the form ecat7_filename_extension_f1g1d0b0.h?. For example, for ecat7_filename test.S, and frame=2, gate=3, data=4, bed=5, the header name will be test_S_f2g3d4b5.hs

See also
write_basic_interfile_header_for_ecat7()
Warning
This only works with some CTI file_types. In particular, it does NOT work with the ECAT6-like files_types, as then there are subheaders 'in' the datasets.
Implementation uses the Louvain la Neuve Ecat library. So, it will only work on systems where this library works properly.