#include <value_to_point.hh>
Inheritance diagram for oln::convert::value_to_point< Argument_type, Exact >:
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 |
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.