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

Provides some algorithms to compute histograms. More...

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

Go to the source code of this file.

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 RandomAccessIterator >
void slip::histogram (InputIterator first, InputIterator last, RandomAccessIterator histo_first, RandomAccessIterator histo_last, typename std::iterator_traits< InputIterator >::value_type minval, typename std::iterator_traits< InputIterator >::value_type maxval, typename std::iterator_traits< InputIterator >::value_type step=1)
 Simple histogram algorithm (uniform step) More...
 
template<typename InputIterator , typename RandomAccessIterator , typename MaskIterator >
void slip::histogram_mask (InputIterator first, InputIterator last, MaskIterator mask_first, RandomAccessIterator histo_first, RandomAccessIterator histo_last, typename std::iterator_traits< InputIterator >::value_type minval, typename std::iterator_traits< InputIterator >::value_type maxval, typename std::iterator_traits< InputIterator >::value_type step=1, typename std::iterator_traits< MaskIterator >::value_type value=typename std::iterator_traits< MaskIterator >::value_type(1))
 Simple histogram algorithm (uniform step) according to a mask sequence. More...
 
template<typename InputIterator , typename RandomAccessIterator , typename Predicate >
void slip::histogram_if (InputIterator first, InputIterator last, RandomAccessIterator histo_first, RandomAccessIterator histo_last, Predicate pred, typename std::iterator_traits< InputIterator >::value_type minval, typename std::iterator_traits< InputIterator >::value_type maxval, typename std::iterator_traits< InputIterator >::value_type step=1)
 Simple histogram algorithm (uniform step) according to a predicate. More...
 
template<typename InputIterator , typename InputIterator2 , typename OutputIterator >
void slip::real_histogram (InputIterator first, InputIterator last, InputIterator2 stepfirst, InputIterator2 steplast, OutputIterator result)
 Complex histogram algorithm (variable step) More...
 
template<typename RandomAccessIterator1 , typename RandomAccessIterator2 >
void slip::cumulative_histogram (RandomAccessIterator1 histo_first, RandomAccessIterator1 histo_last, RandomAccessIterator2 cum_histo_first, RandomAccessIterator2 cum_histo_last)
 Computes the cumulative histogram from a histogram. More...
 

Detailed Description

Provides some algorithms to compute histograms.

Since
1.0.0

Definition in file histo.hpp.