oln::convert::f_nrgb_to_xyz< inbits, outbits > Struct Template Reference

#include <nrgbxyz.hh>

Inheritance diagram for oln::convert::f_nrgb_to_xyz< inbits, outbits >:

Inheritance graph
[legend]
Collaboration diagram for oln::convert::f_nrgb_to_xyz< inbits, outbits >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

color< 3, outbits, xyz_traits > doit (const color< 3, inbits, nrgb_traits > &v) const

Static Public Member Functions

std::string name ()

Detailed Description

template<unsigned inbits, unsigned outbits>
struct oln::convert::f_nrgb_to_xyz< inbits, outbits >

Functor for conversion from N-RGB to XYZ color space.

Deprecated:
A composition should be performed with nrgb->rgb and rgb->xyz. It has not been replaced within the function because a double conversion 'reduces' the color space. See the following example:
// Obsolete: // // #include <oln/convert/nrgbxyz.hh> // #include <ntg/all.hh> // int main(int argc, char **argv) // { // ntg::nrgb_8 in(100, 60, 64); // ntg::xyz_8 out = oln::convert::f_nrgb_to_xyz<8, 8>()(in); // } // // Should be replaced by: // #include <oln/convert/rgbxyz.hh> #include <oln/convert/rgbnrgb.hh> #include <ntg/all.hh> int main() { ntg::nrgb_8 in(100, 60, 64); ntg::xyz_8 out = oln::convert::f_rgb_to_xyz<8, 8>() (oln::convert::f_nrgb_to_rgb<8, 8>()(in)); }

Definition at line 83 of file nrgbxyz.hh.


The documentation for this struct was generated from the following file:
Generated on Thu Apr 15 20:15:23 2004 for Olena by doxygen 1.3.6-20040222