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

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 Thu Apr 15 20:15:30 2004 for Olena by doxygen 1.3.6-20040222