SLIP  1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions
threshold.hpp File Reference

Provides some threshold and binarization algorithms. More...

#include <iterator>
#include <algorithm>
#include <numeric>
#include <cassert>
#include <cmath>
Include dependency graph for threshold.hpp:

Go to the source code of this file.

Classes

struct  slip::binarize_fun< InType, OutType >
 Functor object used to binarize a value. More...
 
struct  slip::threshold_fun< InType, OutType >
 Functor object used to threshold a value. More...
 
struct  slip::db_threshold_fun< InType, OutType >
 Functor object used to double-threshold a value. More...
 

Namespaces

 slip
 This namespace corresponds to the kernel of the Simple Library on Image Processing (SLIP). That is to say that it contains the data structures and the algorithms needed by these data strucutres.
 

Functions

template<typename InputIterator , typename OutputIterator >
void slip::binarize (InputIterator first, InputIterator last, OutputIterator result, const typename std::iterator_traits< InputIterator >::value_type &t_value, const typename std::iterator_traits< OutputIterator >::value_type &false_value, const typename std::iterator_traits< OutputIterator >::value_type &true_value)
 binarize algorithm More...
 
template<typename InputIterator , typename OutputIterator >
void slip::threshold (InputIterator first, InputIterator last, OutputIterator result, const typename std::iterator_traits< InputIterator >::value_type &t_value, const typename std::iterator_traits< OutputIterator >::value_type &false_value)
 threshold algorithm More...
 
template<typename InputIterator , typename OutputIterator >
void slip::db_threshold (InputIterator first, InputIterator last, OutputIterator result, const typename std::iterator_traits< InputIterator >::value_type &min_t_value, const typename std::iterator_traits< InputIterator >::value_type &max_t_value, const typename std::iterator_traits< OutputIterator >::value_type &false_value)
 double-threshold algorithm More...
 
template<typename InputIterator1 , typename RandomAccessIterator1 , typename RandomAccessIterator2 , typename OutputIterator >
void slip::multi_threshold (InputIterator1 first, InputIterator1 last, RandomAccessIterator1 first_th, RandomAccessIterator1 last_th, RandomAccessIterator2 first_level, RandomAccessIterator2 last_level, OutputIterator result_first, OutputIterator result_last)
 multi_threshold algorithm It is equivalent to a quantification J[i] = Level[i] if T[i-1] < I[i] <= T[i] More...
 

Detailed Description

Provides some threshold and binarization algorithms.

Definition in file threshold.hpp.