STIR 6.4.0
thresholding.h File Reference

Declaration of functions that threshold sequences (specified by iterators). More...

#include "stir/min_positive_element.h"
#include <algorithm>

Go to the source code of this file.

Namespaces

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

Functions

Functions for thresholding numbers and sequences
template<typename forw_iterT, typename elemT>
void stir::threshold_upper_lower (forw_iterT begin, forw_iterT end, const elemT new_min, const elemT new_max)
 Threshold a sequence from above and below.
 
template<typename forw_iterT, typename elemT>
void stir::threshold_upper (forw_iterT begin, forw_iterT end, const elemT new_max)
 Threshold a sequence from above.
 
template<typename forw_iterT, typename elemT>
void stir::threshold_lower (forw_iterT begin, forw_iterT end, const elemT new_min)
 Threshold a sequence from below.
 
template<typename ForwardIter_t, typename elemT>
void stir::threshold_min_to_small_positive_value (ForwardIter_t begin, ForwardIter_t end, const elemT &small_number)
 sets non-positive values in the sequence to small positive ones
 

Detailed Description

Declaration of functions that threshold sequences (specified by iterators).

Author
Kris Thielemans