Converts a GrayLevelImage (the Y channel) and a ColorImageUV8 to RGB. More...
#include <Y8UV8ToRGB8Operator.h>

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] |
Converts a GrayLevelImage (the Y channel) and a ColorImageUV8 to RGB.
Definition at line 26 of file Y8UV8ToRGB8Operator.h.
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.
| puma2::Y8UV8ToRGB8Operator::~Y8UV8ToRGB8Operator | ( | ) | [virtual] |
Destructor
Definition at line 69 of file Y8UV8ToRGB8Operator.cpp.
| 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] |
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.
bool puma2::Y8UV8ToRGB8Operator::initialized = false [static, private] |
Definition at line 62 of file Y8UV8ToRGB8Operator.h.
Mutex puma2::Y8UV8ToRGB8Operator::mutex [static, private] |
Definition at line 63 of file Y8UV8ToRGB8Operator.h.
int puma2::Y8UV8ToRGB8Operator::uPaletteB [static, private] |
Definition at line 59 of file Y8UV8ToRGB8Operator.h.
int puma2::Y8UV8ToRGB8Operator::uPaletteG [static, private] |
Definition at line 58 of file Y8UV8ToRGB8Operator.h.
int puma2::Y8UV8ToRGB8Operator::vPaletteG [static, private] |
Definition at line 61 of file Y8UV8ToRGB8Operator.h.
int puma2::Y8UV8ToRGB8Operator::vPaletteR [static, private] |
Definition at line 60 of file Y8UV8ToRGB8Operator.h.
int puma2::Y8UV8ToRGB8Operator::yPalette [static, private] |
Definition at line 57 of file Y8UV8ToRGB8Operator.h.