STIR  6.2.0
Functions
poisson_noise.cxx File Reference

Generates a noise realisation according to Poisson statistics for some projection data. More...

#include "stir/GeneralisedPoissonNoiseGenerator.h"
#include "stir/ProjDataInterfile.h"

Functions

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

Detailed Description

Generates a noise realisation according to Poisson statistics for some projection data.

Author
Kris Thielemans
Sanida Mustafovic

Usage:

poisson_noise [-p | --preserve-mean] \
output_filename input_projdata_filename \
scaling_factor seed-unsigned-int

The scaling_factor is used to multiply the input data before generating the Poisson random number. This means that a scaling_factor larger than 1 will result in less noisy data.
The seed value for the random number generator has to be strictly positive.
Without the -p option, the mean of the output data will be equal to scaling_factor*mean_of_input, otherwise it will be equal to mean_of_input.
The options -p and –preserve-mean are identical.