STIR  6.2.0
Namespaces | Functions
postfilter.cxx File Reference

This program performs filtering on image data. More...

#include "stir/PostFiltering.h"
#include "stir/utilities.h"
#include "stir/DiscretisedDensity.h"
#include "stir/DynamicDiscretisedDensity.h"
#include "stir/modelling/ParametricDiscretisedDensity.h"
#include "stir/IO/OutputFileFormat.h"
#include "stir/IO/read_from_file.h"
#include "stir/Succeeded.h"
#include "stir/warning.h"
#include "stir/error.h"
#include <iostream>

Namespaces

 stir
 Namespace for the STIR library (and some/most of its applications)
 

Functions

template<typename STIRImageType >
STIRImageType * stir::ask_image (const char *const input_query)
 
template<typename STIRImageType >
shared_ptr< OutputFileFormat< STIRImageType > > stir::set_up_output_format (const std::string &filename)
 
int main (int argc, char *argv[])
 

Detailed Description

This program performs filtering on image data.

Author
Sanida Mustafovic
Kris Thielemans
Matthew Jacobson
PARAPET project
Richard Brown

This program enables calling any stir::DataProcessor object on input data, and writing it to file. It can take the following command line:

postfilter [--verbose] [--dynamic|--parametric] <output filename> <input header filename> <filter .par filename>
[output_format_par_file] 

This is done to make it easy to process a lot of files with the same ImageProcessor. However, if the number of command line arguments is not correct, appropriate questions will be asked interactively.

If the –verbose option is used, the filter-parameters that are going to be used will be written to stdout. This is useful for checking/debugging.

Example .par file
(but see stir::MedianImageFilter3D to see if the following example is still correct)
PostFilteringParameters :=
Postfilter type :=Median
Median Filter Parameters :=
mask radius x := 1
mask radius y := 2
mask radius z := 3
End Median Filter Parameters:=
End PostFiltering Parameters:=

An optional output file format parameter file can also be given. An example for this might be: output file format 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 :=