STIR  6.2.0
Functions
extract_single_images_from_dynamic_image.cxx File Reference

Split dynamic image into individual images. More...

#include "stir/IO/read_from_file.h"
#include "stir/is_null_ptr.h"
#include "stir/DynamicDiscretisedDensity.h"
#include "stir/VoxelsOnCartesianGrid.h"
#include "stir/IO/OutputFileFormat.h"
#include "stir/Succeeded.h"
#include "stir/error.h"

Functions

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

Detailed Description

Split dynamic image into individual images.

Author
Richard Brown
Usage:
extract_single_images_from_dynamic_image output_filename_pattern input_header_filename output_format_parameter_file
The output filename should look something like this: dyn_im_%d_output.file_extension,
so that we can use boost format. In this fashion, you can can specify the output file extension
should you wish.
An example of an output parameter file is as follows:
OutputFileFormat Parameters:=
output file format type := interfile
interfile Output File Format Parameters:=
number format := float
number_of_bytes_per_pixel:=4
End Interfile Output File Format Parameters:=
End:=