oln::convert::value_to_point< Argument_type, Exact > Struct Template Reference

#include <value_to_point.hh>

Inheritance diagram for oln::convert::value_to_point< Argument_type, Exact >:

Inheritance graph
[legend]
Collaboration diagram for oln::convert::value_to_point< Argument_type, Exact >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef point1d result_type
 By default return a point1d.
typedef Argument_type argument_type

Public Member Functions

result_type doit (const argument_type &input) const

Classes

struct  doit_binary
 Convert a binary to a point. More...
struct  doit_not_binary
 Convert a non vectorial to a point. More...

Detailed Description

template<typename Argument_type, class Exact = mlc::final>
struct oln::convert::value_to_point< Argument_type, Exact >

Convert a value of pixel to a point.

For example, transform an RGB color to a 3D point (ntg::rgb_8 => oln::point3d). This function is useful to build the histogram.
Example:

    ** f(oln::convert::value_to_point<ntg::rgb_8>()(ntg::rgb_8(1,6,64)));
    ** // is equivalent to:
    ** f(oln::point3d(1, 6, 64));
    ** 

Definition at line 52 of file value_to_point.hh.


The documentation for this struct was generated from the following file:
Generated on Tue Feb 20 20:26:03 2007 for Olena by  doxygen 1.5.1