Public Types | Public Member Functions | Public Attributes

mln::clustering::impl::rgb_to_dist< T, n > Struct Template Reference

#include <kmean_rgb.hh>

Inheritance diagram for mln::clustering::impl::rgb_to_dist< T, n >:
Inheritance graph

List of all members.

Public Types

typedef value::rgb< n > argument
typedef Function_v2v< void > category
typedef rgb_to_dist< T, n > exact_t
typedef void mutable_result
typedef T result
typedef image3d< unsigned > t_histo_img
typedef T t_result1d
typedef algebra::vec< 3, T > t_result3d

Public Member Functions

result operator() (const argument &c) const
 rgb_to_dist (t_result3d mean, t_histo_img histo)

Public Attributes

t_histo_img _histo
t_result3d _mean

Detailed Description

template<typename T, unsigned n>
struct mln::clustering::impl::rgb_to_dist< T, n >

Definition at line 522 of file kmean_rgb.hh.


Member Typedef Documentation

template<typename T , unsigned n>
typedef value::rgb<n> mln::clustering::impl::rgb_to_dist< T, n >::argument

Definition at line 524 of file kmean_rgb.hh.

typedef Function_v2v<void> mln::Function_v2v< rgb_to_dist< T, n > >::category [inherited]

Reimplemented from mln::Function< rgb_to_dist< T, n > >.

Definition at line 126 of file function.hh.

typedef rgb_to_dist< T, n > mln::Object< rgb_to_dist< T, n > >::exact_t [inherited]

Definition at line 173 of file object.hh.

typedef void mln::Function_v2v< rgb_to_dist< T, n > >::mutable_result [inherited]

Definition at line 127 of file function.hh.

template<typename T , unsigned n>
typedef T mln::clustering::impl::rgb_to_dist< T, n >::result

Definition at line 525 of file kmean_rgb.hh.

template<typename T , unsigned n>
typedef image3d<unsigned> mln::clustering::impl::rgb_to_dist< T, n >::t_histo_img

Definition at line 528 of file kmean_rgb.hh.

template<typename T , unsigned n>
typedef T mln::clustering::impl::rgb_to_dist< T, n >::t_result1d

Definition at line 526 of file kmean_rgb.hh.

template<typename T , unsigned n>
typedef algebra::vec<3,T> mln::clustering::impl::rgb_to_dist< T, n >::t_result3d

Definition at line 527 of file kmean_rgb.hh.


Constructor & Destructor Documentation

template<typename T , unsigned n>
mln::clustering::impl::rgb_to_dist< T, n >::rgb_to_dist ( t_result3d  mean,
t_histo_img  histo 
) [inline]

Definition at line 533 of file kmean_rgb.hh.


Member Function Documentation

template<typename T , unsigned n>
result mln::clustering::impl::rgb_to_dist< T, n >::operator() ( const argument c  )  const [inline]

Member Data Documentation

template<typename T , unsigned n>
t_histo_img mln::clustering::impl::rgb_to_dist< T, n >::_histo
template<typename T , unsigned n>
t_result3d mln::clustering::impl::rgb_to_dist< T, n >::_mean