$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::fun::vv2v::diff_abs< V > Struct Template Reference

#include <mln/fun/vv2v/diff_abs.hh>

Public Member Functions

operator() (const V &v1, const V &v2) const

Public Types

typedef Function_vv2v< void > category
typedef diff_abs< V > exact_t
typedef V result

Detailed Description

template<typename V>
struct mln::fun::vv2v::diff_abs< V >

Functor computing the absolute difference of two values.

Template Parameters
VThe type of the values to compare.

Definition at line 51 of file fun/vv2v/diff_abs.hh.

Member Function Documentation

template<typename V >
V mln::fun::vv2v::diff_abs< V >::operator() ( const V &  v1,
const V &  v2 
) const

Compute the absolute difference of v1 and v2.

That is, compute $|v1 - v2|$.

Member Typedef Documentation

typedef Function_vv2v<void> mln::Function_vv2v< diff_abs< V > >::category
inherited

Definition at line 191 of file function.hh.

typedef diff_abs< V > mln::Object< diff_abs< V > >::exact_t
inherited

Definition at line 105 of file object.hh.

template<typename V >
typedef V mln::fun::vv2v::diff_abs< V >::result

Definition at line 53 of file fun/vv2v/diff_abs.hh.