STIR  6.2.0
Classes | Namespaces | Functions
recon_array_functions.h File Reference

a variety of useful functions More...

#include "stir/common.h"

Go to the source code of this file.

Classes

class  stir::SegmentByView< elemT >
 A class for storing (3d) projection data with fixed SegmentIndices. More...
 
class  stir::SegmentBySinogram< elemT >
 A class for storing (3d) projection data with fixed SegmentIndices. More...
 
class  stir::Viewgram< elemT >
 A class for 2d projection data. More...
 
class  stir::RelatedViewgrams< elemT >
 A class for storing viewgrams which are related by symmetry. More...
 
class  stir::DiscretisedDensity< num_dimensions, elemT >
 This abstract class is the basis for all image representations. More...
 

Namespaces

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

Functions

float stir::neg_trunc (float x)
 truncates negative values to zero
 
void stir::divide_and_truncate (Viewgram< float > &numerator, const Viewgram< float > &denominator, const int rim_truncation_sino, int &count, int &count2, double *f=NULL)
 divide viewgrams and set 'edge bins' to zero, put answer in numerator
 
void stir::divide_and_truncate (RelatedViewgrams< float > &numerator, const RelatedViewgrams< float > &denominator, const int rim_truncation_sino, int &count, int &count2, double *f=NULL)
 divide related viewgrams and set 'edge bins' to zero, put answer in numerator
 
void stir::truncate_rim (DiscretisedDensity< 3, float > &image_input, const int rim_truncation_image, const bool strictly_less_than_radius=true)
 sets to zero voxels within rim_truncation_image of the FOV rim
 
void stir::truncate_rim (SegmentByView< float > &seg, const int rim_truncation_sino)
 sets the first and last rim_truncation_sino bins at the 'edges' to zero
 
void stir::truncate_rim (Viewgram< float > &viewgram, const int rim_truncation_sino)
 sets the first and last rim_truncation_sino bins at the 'edges' to zero
 
void stir::truncate_end_planes (DiscretisedDensity< 3, float > &input_image, int input_num_planes=1)
 sets the end planes of the image to zero
 
void stir::divide_array (SegmentByView< float > &numerator, const SegmentByView< float > &denominator)
 simple division of two sinograms, x/0 = 0
 
void stir::divide_array (DiscretisedDensity< 3, float > &numerator, const DiscretisedDensity< 3, float > &denominator)
 simple division of two images, x/0 = 0
 
void stir::accumulate_loglikelihood (Viewgram< float > &projection_data, const Viewgram< float > &estimated_projections, const int rim_truncation_sino, double *accum)
 compute the log term of the loglikelihood function for given part of the projection space
 

Detailed Description

a variety of useful functions

Author
Matthew Jacobson
Kris Thielemans
PARAPET project