STIR  6.2.0
Functions
extract_single_images_from_parametric_image.cxx File Reference

Split parametric image into individual images. More...

#include "stir/IO/read_from_file.h"
#include "stir/is_null_ptr.h"
#include "stir/modelling/ParametricDiscretisedDensity.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 parametric image into individual images.

Author
Richard Brown
Kris Thielemans
Usage:
extract_single_images_from_parametric_image output_filename_pattern input_header_filename output_format_parameter_file

The output filename should look something like this: param_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:=
See also
get_dynamic_images_from_parametric_images.cxx to get dynamic images from parametric images.