Public Member Functions | Static Private Member Functions | Static Private Attributes
puma2::Y8UV8ToRGB8Operator Class Reference

Converts a GrayLevelImage (the Y channel) and a ColorImageUV8 to RGB. More...

#include <Y8UV8ToRGB8Operator.h>

Inheritance diagram for puma2::Y8UV8ToRGB8Operator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void apply (const GrayLevelImage8 &imageY, const ColorImageUV8 &imageUV, ColorImageRGB8 &imageRGB)
 Do the real work of the operator.
 Y8UV8ToRGB8Operator ()
 Y8UV8ToRGB8Operator (const GrayLevelImage8 &constYImage, const ColorImageUV8 &constUvImage, ColorImageRGB8 &imageRGB)
virtual ~Y8UV8ToRGB8Operator ()

Static Private Member Functions

static void initialize ()

Static Private Attributes

static bool initialized = false
static Mutex mutex
static int uPaletteB [256]
static int uPaletteG [256]
static int vPaletteG [256]
static int vPaletteR [256]
static int yPalette [256]

Detailed Description

Converts a GrayLevelImage (the Y channel) and a ColorImageUV8 to RGB.

Definition at line 26 of file Y8UV8ToRGB8Operator.h.


Constructor & Destructor Documentation

Default constructor.

Definition at line 67 of file Y8UV8ToRGB8Operator.cpp.

puma2::Y8UV8ToRGB8Operator::Y8UV8ToRGB8Operator ( const GrayLevelImage8 constYImage,
const ColorImageUV8 constUvImage,
ColorImageRGB8 imageRGB 
) [inline]

Create, apply, delete

Definition at line 39 of file Y8UV8ToRGB8Operator.h.

Destructor

Definition at line 69 of file Y8UV8ToRGB8Operator.cpp.


Member Function Documentation

void puma2::Y8UV8ToRGB8Operator::apply ( const GrayLevelImage8 imageY,
const ColorImageUV8 imageUV,
ColorImageRGB8 imageRGB 
) [virtual]

Do the real work of the operator.

Implements puma2::ImagePairToImageOperator< GrayLevelImage8, ColorImageUV8, ColorImageRGB8 >.

Definition at line 71 of file Y8UV8ToRGB8Operator.cpp.

void puma2::Y8UV8ToRGB8Operator::initialize ( ) [static, private]
Note:
Conversion formulae:

Formula for digital YCrCb (YUV) taken from the Sony X700 technical manual. R = Y + 1.4022V G = Y - 0.3458U - 0.7144V B = Y + 1.7710U

Taken from "intersil YCbCr to RGB considerations" R´ = 1.164(Y - 16) + 1.596(Cr - 128) G´ = 1.164(Y - 16) - 0.392(Cb - 128) - 0.813(Cr - 128) B´ = 1.164(Y - 16) + 2.017(Cb - 128)

Definition at line 28 of file Y8UV8ToRGB8Operator.cpp.


Member Data Documentation

bool puma2::Y8UV8ToRGB8Operator::initialized = false [static, private]

Definition at line 62 of file Y8UV8ToRGB8Operator.h.

Definition at line 63 of file Y8UV8ToRGB8Operator.h.

Definition at line 59 of file Y8UV8ToRGB8Operator.h.

Definition at line 58 of file Y8UV8ToRGB8Operator.h.

Definition at line 61 of file Y8UV8ToRGB8Operator.h.

Definition at line 60 of file Y8UV8ToRGB8Operator.h.

int puma2::Y8UV8ToRGB8Operator::yPalette [static, private]

Definition at line 57 of file Y8UV8ToRGB8Operator.h.


The documentation for this class was generated from the following files:


obj_rec_gui
Author(s): AGAS/agas@uni-koblenz.de
autogenerated on Mon Oct 6 2014 02:53:44