LTI-Lib latest version v1.9 - last update 10 Apr 2010

ltiRGBPixel.h File Reference

This file contains the definitions of the basic color types used in the LTI-Lib:

More...

#include <iostream>
#include "ltiIoHandler.h"
#include "ltiConfig.h"
#include "ltiAssert.h"
#include "ltiTypes.h"
Include dependency graph for ltiRGBPixel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  lti::rgbPixel
 Color pixel representation in RGB color space. More...
union  lti::rgbPixel::rgbPixelType
 this union allows to share the memory of a 32 bit integer with the three ubytes of RGB and a alpha byte. More...
struct  lti::rgbPixel::rgbPixelType::channelsType
 the three channels More...
class  lti::trgbPixel< T >
 Template to use RGB pixel representations of types other than ubyte. More...

Namespaces

namespace  lti
namespace  std

Typedefs

typedef trgbPixel< double > lti::drgbPixel
typedef trgbPixel< float > lti::frgbPixel
typedef trgbPixel< int > lti::irgbPixel

Functions

bool lti::read (ioHandler &handler, rgbPixel &p, const bool=true)
bool lti::write (ioHandler &handler, const rgbPixel &p, const bool=true)
template<class T >
bool lti::read (ioHandler &handler, trgbPixel< T > &p, const bool complete=true)
template<class T >
bool lti::write (ioHandler &handler, const trgbPixel< T > &p, const bool complete=true)
Constants for the primary and secondary colors, as well as

black and white.



const rgbPixel lti::Black (0, 0, 0, 0)
const rgbPixel lti::Red (255, 0, 0, 0)
const rgbPixel lti::Green (0, 255, 0, 0)
const rgbPixel lti::Blue (0, 0, 255, 0)
const rgbPixel lti::Yellow (255, 255, 0, 0)
const rgbPixel lti::Magenta (255, 0, 255, 0)
const rgbPixel lti::Cyan (0, 255, 255, 0)
const rgbPixel lti::White (255, 255, 255, 0)

Detailed Description

This file contains the definitions of the basic color types used in the LTI-Lib:


Generated on Sat Apr 10 15:26:28 2010 for LTI-Lib by Doxygen 1.6.1