STIR  6.2.0
Namespaces | Functions | Variables
recon_array_functions.cxx File Reference

implementations for functions declared in recon_array_functions.h More...

#include "stir/recon_array_functions.h"
#include "stir/min_positive_element.h"
#include "stir/VoxelsOnCartesianGrid.h"
#include "stir/RelatedViewgrams.h"
#include "stir/Viewgram.h"
#include "stir/SegmentByView.h"
#include "stir/SegmentBySinogram.h"
#include "stir/error.h"
#include <numeric>

Namespaces

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

Functions

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_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 (SegmentBySinogram< float > &seg, const int rim_truncation_sino)
 
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::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::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
 
void stir::multiply_and_add (DiscretisedDensity< 3, float > &image_res, const DiscretisedDensity< 3, float > &image_scaled, float scalar)
 
float stir::neg_trunc (float x)
 truncates negative values 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
 

Variables

const float stir::SMALL_NUM = 0.000001F
 

Detailed Description

implementations for functions declared in recon_array_functions.h

Author
Matthew Jacobson
Kris Thielemans
PARAPET project