ViSP
2.10.0
|
#include <vpRGBa.h>
Public Member Functions | |
vpRGBa () | |
vpRGBa (const unsigned char &r, const unsigned char &g, const unsigned char &b, const unsigned char &a=0) | |
vpRGBa (const unsigned char &v) | |
vpRGBa (const vpRGBa &v) | |
vpRGBa (const vpColVector &v) | |
vpRGBa & | operator= (const unsigned char &v) |
vpRGBa & | operator= (const vpRGBa &v) |
vpRGBa & | operator= (const vpColVector &v) |
bool | operator== (const vpRGBa &v) |
bool | operator!= (const vpRGBa &v) |
vpColVector | operator- (const vpRGBa &v) const |
vpRGBa | operator+ (const vpRGBa &v) const |
vpColVector | operator- (const vpColVector &v) const |
vpColVector | operator+ (const vpColVector &v) const |
vpColVector | operator* (const float &v) const |
vpColVector | operator* (const double &v) const |
bool | operator< (const vpRGBa &v) const |
bool | operator> (const vpRGBa &v) const |
Public Attributes | |
unsigned char | R |
unsigned char | G |
unsigned char | B |
unsigned char | A |
Friends | |
VISP_EXPORT vpRGBa | operator* (const double &x, const vpRGBa &rgb) |
Class that defines a RGB 32 bits structure.
Define the object vpRGBa that is used to build color images (it define a RGB 32 bits structure, fourth byte is not used)
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool vpRGBa::operator!= | ( | const vpRGBa & | v | ) |
vpColVector vpRGBa::operator* | ( | const float & | v | ) | const |
vpColVector vpRGBa::operator* | ( | const double & | v | ) | const |
vpColVector vpRGBa::operator+ | ( | const vpColVector & | v | ) | const |
vpColVector vpRGBa::operator- | ( | const vpRGBa & | v | ) | const |
vpColVector vpRGBa::operator- | ( | const vpColVector & | v | ) | const |
bool vpRGBa::operator< | ( | const vpRGBa & | v | ) | const |
Definition at line 242 of file vpRGBa.cpp.
vpRGBa & vpRGBa::operator= | ( | const unsigned char & | v | ) |
vpRGBa & vpRGBa::operator= | ( | const vpColVector & | v | ) |
Cast a vpColVector in a vpRGBa
v | : Input vector. v[0], v[1], v[2], v[3] are to make into relation with respectively R, G, B and A. |
vpException::dimensionError | : If v is not a 4 four dimention vector. |
Definition at line 94 of file vpRGBa.cpp.
References A, B, vpException::dimensionError, G, vpMatrix::getRows(), R, and vpERROR_TRACE.
bool vpRGBa::operator== | ( | const vpRGBa & | v | ) |
bool vpRGBa::operator> | ( | const vpRGBa & | v | ) | const |
Definition at line 251 of file vpRGBa.cpp.
Definition at line 259 of file vpRGBa.cpp.
unsigned char vpRGBa::A |
Additionnal component.
Definition at line 149 of file vpRGBa.h.
Referenced by vpImageConvert::convert(), vpDisplayX::getImage(), operator!=(), operator*(), operator+(), operator-(), operator=(), and operator==().
unsigned char vpRGBa::B |
Blue component.
Definition at line 148 of file vpRGBa.h.
Referenced by vpDisplayX::clearDisplay(), vpImageConvert::convert(), vpDisplayX::displayCharString(), vpDisplayOpenCV::displayCharString(), vpDisplayGTK::displayCharString(), vpDisplayX::displayCircle(), vpDisplayOpenCV::displayCircle(), vpDisplayGTK::displayCircle(), vpDisplayX::displayDotLine(), vpDisplayOpenCV::displayDotLine(), vpDisplayGTK::displayDotLine(), vpDisplayX::displayImage(), vpDisplayX::displayLine(), vpDisplayOpenCV::displayLine(), vpDisplayGTK::displayLine(), vpDisplayX::displayPoint(), vpDisplayGTK::displayPoint(), vpDisplayX::displayRectangle(), vpDisplayOpenCV::displayRectangle(), vpDisplayGTK::displayRectangle(), vpDisplayX::getImage(), vpImageSimulator::getImage(), vpDisplayX::init(), vpDisplayOpenCV::init(), operator!=(), operator*(), operator+(), operator-(), operator<(), operator=(), operator==(), operator>(), vpImageIo::readPPM(), and vpImageIo::writePPM().
unsigned char vpRGBa::G |
Green component.
Definition at line 147 of file vpRGBa.h.
Referenced by vpDisplayX::clearDisplay(), vpImageConvert::convert(), vpDisplayX::displayCharString(), vpDisplayOpenCV::displayCharString(), vpDisplayGTK::displayCharString(), vpDisplayX::displayCircle(), vpDisplayOpenCV::displayCircle(), vpDisplayGTK::displayCircle(), vpDisplayX::displayDotLine(), vpDisplayOpenCV::displayDotLine(), vpDisplayGTK::displayDotLine(), vpDisplayX::displayImage(), vpDisplayX::displayLine(), vpDisplayOpenCV::displayLine(), vpDisplayGTK::displayLine(), vpDisplayX::displayPoint(), vpDisplayGTK::displayPoint(), vpDisplayX::displayRectangle(), vpDisplayOpenCV::displayRectangle(), vpDisplayGTK::displayRectangle(), vpDisplayX::getImage(), vpImageSimulator::getImage(), vpDisplayX::init(), vpDisplayOpenCV::init(), operator!=(), operator*(), operator+(), operator-(), operator<(), operator=(), operator==(), operator>(), vpImageIo::readPPM(), and vpImageIo::writePPM().
unsigned char vpRGBa::R |
Red component.
Definition at line 146 of file vpRGBa.h.
Referenced by vpDisplayX::clearDisplay(), vpImageConvert::convert(), vpDisplayX::displayCharString(), vpDisplayOpenCV::displayCharString(), vpDisplayGTK::displayCharString(), vpDisplayX::displayCircle(), vpDisplayOpenCV::displayCircle(), vpDisplayGTK::displayCircle(), vpDisplayX::displayDotLine(), vpDisplayOpenCV::displayDotLine(), vpDisplayGTK::displayDotLine(), vpDisplayX::displayImage(), vpDisplayX::displayLine(), vpDisplayOpenCV::displayLine(), vpDisplayGTK::displayLine(), vpDisplayX::displayPoint(), vpDisplayGTK::displayPoint(), vpDisplayX::displayRectangle(), vpDisplayOpenCV::displayRectangle(), vpDisplayGTK::displayRectangle(), vpDisplayX::getImage(), vpImageSimulator::getImage(), vpDisplayX::init(), vpDisplayOpenCV::init(), operator!=(), operator*(), operator+(), operator-(), operator<(), operator=(), operator==(), operator>(), vpImageIo::readPPM(), and vpImageIo::writePPM().