STIR  6.2.0
Namespaces
compute_ROI_values.cxx File Reference

Implementation of functions declared in stir/evaluation/compute_ROI_values.h. More...

#include "stir/evaluation/compute_ROI_values.h"
#include "stir/Shape/Shape3D.h"
#include "stir/CartesianCoordinate2D.h"
#include "stir/CartesianCoordinate3D.h"
#include "stir/VoxelsOnCartesianGrid.h"
#include "stir/shared_ptr.h"
#include "stir/error.h"
#include <numeric>
#include <boost/limits.hpp>

Namespaces

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

Functions

Functions to compute ROI values

Shapes can be first discretised using Shape3D::construct_volume or a Shape3D parsed. This can make fuzzy boundaries (when the num_samples argument is not (1,1,1), or when DiscretisedShape3D needs zooming). Mean and stddev are computed using weighted versions, taking this smoothness into account, while ROI_min and max are ignore those weights.

void stir::compute_ROI_values_per_plane (VectorWithOffset< ROIValues > &values, const DiscretisedDensity< 3, float > &density, const Shape3D &shape, const CartesianCoordinate3D< int > &num_samples)
 
void stir::compute_ROI_values_per_plane (VectorWithOffset< ROIValues > &values, const DiscretisedDensity< 3, float > &density, const DiscretisedDensity< 3, float > &discretised_shape)
 
ROIValues stir::compute_total_ROI_values (const VectorWithOffset< ROIValues > &values)
 
ROIValues stir::compute_total_ROI_values (const DiscretisedDensity< 3, float > &image, const Shape3D &shape, const CartesianCoordinate3D< int > &num_samples)
 
ROIValues stir::compute_total_ROI_values (const DiscretisedDensity< 3, float > &image, const DiscretisedDensity< 3, float > &discretised_shape)
 
void stir::compute_plane_range_ROI_values_per_plane (VectorWithOffset< ROIValues > &values, const DiscretisedDensity< 3, float > &density, const CartesianCoordinate2D< int > &plane_range, const Shape3D &shape, const CartesianCoordinate3D< int > &num_samples)
 
float stir::compute_CR_hot (ROIValues &val1, ROIValues &val2)
 
float stir::compute_CR_cold (ROIValues &val1, ROIValues &val2)
 
float stir::compute_uniformity (ROIValues &val)
 
VectorWithOffset< float > stir::compute_CR_hot_per_plane (VectorWithOffset< ROIValues > &val1, VectorWithOffset< ROIValues > &val2)
 
VectorWithOffset< float > stir::compute_CR_cold_per_plane (VectorWithOffset< ROIValues > &val1, VectorWithOffset< ROIValues > &val2)
 
VectorWithOffset< float > stir::compute_uniformity_per_plane (VectorWithOffset< ROIValues > &val)
 

Detailed Description

Implementation of functions declared in stir/evaluation/compute_ROI_values.h.

Author
Kris Thielemans
Damiano Belluzzo