STIR  6.2.0
Functions
conv_to_ecat6.cxx File Reference

Conversion from interfile (or any format that we can read) to ECAT 6 cti (image and sinogram data) More...

#include "stir/DiscretisedDensity.h"
#include "stir/ProjData.h"
#include "stir/shared_ptr.h"
#include "stir/utilities.h"
#include "stir/IO/stir_ecat6.h"
#include "stir/IO/ecat6_utils.h"
#include "stir/IO/read_from_file.h"
#include "stir/Succeeded.h"
#include <iostream>
#include <vector>
#include <string>
#include "stir/warning.h"
#include "stir/error.h"

Functions

int main (int argc, char *argv[])
 

Detailed Description

Conversion from interfile (or any format that we can read) to ECAT 6 cti (image and sinogram data)

Author
Kris Thielemans
PARAPET project

This programme is used to convert image or projection data into CTI ECAT 6 data (input can be any format currently supported by the library). It normally should be run as follows

conv_to_ecat6 [-k] [-i]  outputfilename.img input_filename1 [input_filename2 ...] scanner_name

(for images)

conv_to_ecat6 -s[2] [-k] [-i] outputfilename.scn input_filename1 [input_filename2 ...]

(for projection data)
If there are no command line parameters, the user is asked for the filenames and options instead. Unless the -i option is used, the data will be assigned a frame number in the order that they occur on the command line.
See buildblock/Scanner.cxx for supported scanner names, but examples are ECAT 953, ART, Advance. ECAT HR+, etc. If the scanner_name contains a space, the scanner name has to be surrounded by double quotes (") when used as a command line argument.

Command line options:
  • -s2: This option forces output to 2D sinograms (ignoring higher segments).
  • -k: the existing ECAT6 file will NOT be overwritten, but added to. Any existing data in the ECAT6 file with the same <frame,gate,data,bed> specification will be overwritten.
  • -i: ask for <frame,gate,data,bed> for each dataset
Note that to store projection data in ECAT6, a 3D sinogram cannot be axially compressed (CTI span=1).