Public Member Functions | Static Public Member Functions | Public Attributes

LogLUV24Pixel Struct Reference

This reference page is linked to from the following overview topics: High Dynamic Range Bitmaps.


Search for all occurrences

Detailed Description

See also:
Class Color, Structure LogUV32Pixel
Remarks:
This class is available in release 4.0 and later only.
This structure is a 24 bit pixel format that stores 10 bits for log of luminance and 14 bits of chroma.

#include <color.h>

Inheritance diagram for LogLUV24Pixel:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  operator Color () const
LogLUV24Pixel operator= (const float c[3])
GEOMEXPORT void  GetRGB (float rgb[3]) const
GEOMEXPORT void  SetRGB (const float rgb[3])
GEOMEXPORT void  GetXYZ (float xyz[3]) const
GEOMEXPORT void  SetXYZ (const float xyz[3])

Static Public Member Functions

static GEOMEXPORT void  XYZtoRGB (const float xyz[3], float rgb[3])
static GEOMEXPORT void  RGBtoXYZ (const float rgb[3], float xyz[3])

Public Attributes

unsigned char  value [3]
  Storage for the pixel value.

Member Function Documentation

operator Color ( ) const [inline]
Remarks:
This method will return the pixel format as a Color.
{ Color c; GetRGB(c); return c; }
LogLUV24Pixel& operator= ( const float  c[3] ) [inline]
Remarks:
Assignment operator.
Parameters:
const float c[3]
The array of color values to assign in RGB order.
{ SetRGB(c); return *this; }
GEOMEXPORT void GetRGB ( float  rgb[3] ) const
Remarks:
This method will return the RGB space values.
Parameters:
float rgb[3]
The results are stored in this array.
GEOMEXPORT void SetRGB ( const float  rgb[3] )
Remarks:
This method allows you to set the RGB space values.
Parameters:
const float rgb[3]
The values to set.
GEOMEXPORT void GetXYZ ( float  xyz[3] ) const
Remarks:
This method will return the XYZ space values.
Parameters:
float xyz[3]
The values are stored in this array.
GEOMEXPORT void SetXYZ ( const float  xyz[3] )
Remarks:
This method allows you to set the XYZ space values.
Parameters:
const float xyz[3]
The values to set.
static GEOMEXPORT void XYZtoRGB ( const float  xyz[3],
float  rgb[3] 
) [static]
Remarks:
This method will convert from XYZ space to RGB space.
Parameters:
const float xyz[3]
The input values to convert.

float rgb[3]
The output values are stored in this array.
static GEOMEXPORT void RGBtoXYZ ( const float  rgb[3],
float  xyz[3] 
) [static]
Remarks:
This method will convert from RGB space to XYZ space.
Parameters:
const float rgb[3]
The input values to convert.

float xyz[3]
The output values are stored in this array.

Member Data Documentation

unsigned char value[3]

Storage for the pixel value.