![]() |
Visual Servoing Platform
version 3.4.0
|
#include <vpRGBa.h>
Public Types | |
enum | AlphaDefault { alpha_default = 255 } |
Public Member Functions | |
vpRGBa () | |
vpRGBa (unsigned char r, unsigned char g, unsigned char b, unsigned char a=vpRGBa::alpha_default) | |
vpRGBa (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 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 std::ostream & | operator<< (std::ostream &os, const vpRGBa &rgba) |
VISP_EXPORT vpRGBa | operator* (const double &x, const vpRGBa &rgb) |
Related Functions | |
(Note that these are not member functions.) | |
VISP_EXPORT std::ostream & | operator<< (std::ostream &os, const vpRGBa &rgba) |
Class that defines a RGBa 32 bits structure that is used to build color images. RGBa stands for red green blue alpha color space.
The alpha channel is normally used as an opacity channel. If a pixel has a value of 0 in its alpha channel, it is fully transparent, whereas a value of 255 in the alpha channel gives a fully opaque pixel.
By default the alpha channel is set to vpRGBa::alpha_default.
enum vpRGBa::AlphaDefault |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool vpRGBa::operator!= | ( | const vpRGBa & | v | ) |
vpColVector vpRGBa::operator* | ( | const double & | v | ) | const |
vpColVector vpRGBa::operator* | ( | const float & | v | ) | const |
vpColVector vpRGBa::operator+ | ( | const vpColVector & | v | ) | const |
vpColVector vpRGBa::operator- | ( | const vpColVector & | v | ) | const |
vpColVector vpRGBa::operator- | ( | const vpRGBa & | v | ) | const |
bool vpRGBa::operator< | ( | const vpRGBa & | v | ) | const |
Definition at line 229 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 100 of file vpRGBa.cpp.
References A, B, vpException::dimensionError, G, vpArray2D< Type >::getRows(), R, and vpERROR_TRACE.
bool vpRGBa::operator== | ( | const vpRGBa & | v | ) |
bool vpRGBa::operator> | ( | const vpRGBa & | v | ) | const |
Definition at line 237 of file vpRGBa.cpp.
Definition at line 245 of file vpRGBa.cpp.
|
friend |
Writes the RGBA values to the stream os, and returns a reference to the stream. The coordinates are separated by a comma.
The following code prints the intensity of the pixel in the middle of the image:
Definition at line 269 of file vpRGBa.cpp.
|
related |
Writes the RGBA values to the stream os, and returns a reference to the stream. The coordinates are separated by a comma.
The following code prints the intensity of the pixel in the middle of the image:
Definition at line 269 of file vpRGBa.cpp.
unsigned char vpRGBa::A |
Additionnal component.
Definition at line 151 of file vpRGBa.h.
Referenced by vp::adjust(), vpImageConvert::convert(), vpImageConvert::createDepthHistogram(), vpDisplayOpenCV::displayCircle(), vpDisplayX::displayImage(), vpDisplayX::displayImageROI(), vpDisplayOpenCV::displayRectangle(), vp::gammaCorrection(), vpImageTools::imageDifferenceAbsolute(), vpImageConvert::merge(), operator!=(), operator*(), operator+(), operator-(), operator=(), operator==(), and vp::stretchContrast().
unsigned char vpRGBa::B |
Blue component.
Definition at line 150 of file vpRGBa.h.
Referenced by vp::adjust(), vpDisplayX::clearDisplay(), vpImageConvert::convert(), vpImageConvert::createDepthHistogram(), vpDisplayOpenCV::displayCharString(), vpDisplayX::displayCharString(), vpDisplayOpenCV::displayCircle(), vpDisplayX::displayCircle(), vpDisplayX::displayDotLine(), vpDisplayOpenCV::displayImage(), vpDisplayX::displayImage(), vpDisplayOpenCV::displayImageROI(), vpDisplayX::displayImageROI(), vpDisplayOpenCV::displayLine(), vpDisplayX::displayLine(), vpDisplayOpenCV::displayPoint(), vpDisplayX::displayPoint(), vpDisplayOpenCV::displayRectangle(), vpDisplayX::displayRectangle(), vpImageDraw::drawCircle(), vp::drawContours(), vpImageDraw::drawLine(), vpImageDraw::drawPolygon(), vpImageDraw::drawRectangle(), vp::gammaCorrection(), vpImageSimulator::getImage(), vpImageTools::imageDifferenceAbsolute(), vpDisplayOpenCV::init(), vpDisplayX::init(), vpImageConvert::merge(), operator!=(), operator*(), operator+(), operator-(), operator<(), operator=(), operator==(), operator>(), vp::stretchContrast(), vp::unsharpMask(), vpImageTools::warpLinear(), and vpImageIo::writePPM().
unsigned char vpRGBa::G |
Green component.
Definition at line 149 of file vpRGBa.h.
Referenced by vp::adjust(), vpDisplayX::clearDisplay(), vpImageConvert::convert(), vpImageConvert::createDepthHistogram(), vpDisplayOpenCV::displayCharString(), vpDisplayX::displayCharString(), vpDisplayOpenCV::displayCircle(), vpDisplayX::displayCircle(), vpDisplayX::displayDotLine(), vpDisplayOpenCV::displayImage(), vpDisplayX::displayImage(), vpDisplayOpenCV::displayImageROI(), vpDisplayX::displayImageROI(), vpDisplayOpenCV::displayLine(), vpDisplayX::displayLine(), vpDisplayOpenCV::displayPoint(), vpDisplayX::displayPoint(), vpDisplayOpenCV::displayRectangle(), vpDisplayX::displayRectangle(), vpImageDraw::drawCircle(), vp::drawContours(), vpImageDraw::drawLine(), vpImageDraw::drawPolygon(), vpImageDraw::drawRectangle(), vp::gammaCorrection(), vpImageSimulator::getImage(), vpImageTools::imageDifferenceAbsolute(), vpDisplayOpenCV::init(), vpDisplayX::init(), vpImageConvert::merge(), operator!=(), operator*(), operator+(), operator-(), operator<(), operator=(), operator==(), operator>(), vp::stretchContrast(), vp::unsharpMask(), vpImageTools::warpLinear(), and vpImageIo::writePPM().
unsigned char vpRGBa::R |
Red component.
Definition at line 148 of file vpRGBa.h.
Referenced by vp::adjust(), vpDisplayX::clearDisplay(), vpImageConvert::convert(), vpImageConvert::createDepthHistogram(), vpDisplayOpenCV::displayCharString(), vpDisplayX::displayCharString(), vpDisplayOpenCV::displayCircle(), vpDisplayX::displayCircle(), vpDisplayX::displayDotLine(), vpDisplayOpenCV::displayImage(), vpDisplayX::displayImage(), vpDisplayOpenCV::displayImageROI(), vpDisplayX::displayImageROI(), vpDisplayOpenCV::displayLine(), vpDisplayX::displayLine(), vpDisplayOpenCV::displayPoint(), vpDisplayX::displayPoint(), vpDisplayOpenCV::displayRectangle(), vpDisplayX::displayRectangle(), vpImageDraw::drawCircle(), vp::drawContours(), vpImageDraw::drawLine(), vpImageDraw::drawPolygon(), vpImageDraw::drawRectangle(), vp::gammaCorrection(), vpImageSimulator::getImage(), vpImageTools::imageDifferenceAbsolute(), vpDisplayOpenCV::init(), vpDisplayX::init(), vpImageConvert::merge(), operator!=(), operator*(), operator+(), operator-(), operator<(), operator=(), operator==(), operator>(), vp::stretchContrast(), vp::unsharpMask(), vpImageTools::warpLinear(), and vpImageIo::writePPM().