![]() |
Visual Servoing Platform version 3.7.0
|
#include <vpRGBf.h>
Public Member Functions | |
| vpRGBf () | |
| vpRGBf (float r, float g, float b) | |
| VP_EXPLICIT | vpRGBf (float v) |
| VP_EXPLICIT | vpRGBf (int v) |
| vpRGBf (const vpRGBf &v)=default | |
| VP_EXPLICIT | vpRGBf (const vpColVector &v) |
| vpRGBf & | operator= (float v) |
| vpRGBf & | operator= (int v) |
| vpRGBf & | operator= (const vpRGBf &v)=default |
| vpRGBf & | operator= (vpRGBf &&v)=default |
| vpRGBf & | operator= (const vpColVector &v) |
| bool | operator== (const vpRGBf &v) const |
| bool | operator!= (const vpRGBf &v) const |
| vpColVector | operator- (const vpRGBf &v) const |
| vpRGBf | operator+ (const vpRGBf &v) const |
| vpColVector | operator- (const vpColVector &v) const |
| vpColVector | operator+ (const vpColVector &v) const |
| vpColVector | operator* (float v) const |
| vpColVector | operator* (double v) const |
| bool | operator< (const vpRGBf &v) const |
| bool | operator> (const vpRGBf &v) const |
Public Attributes | |
| float | R |
| float | G |
| float | B |
Friends | |
| VISP_EXPORT std::ostream & | operator<< (std::ostream &os, const vpRGBf &rgb) |
| VISP_EXPORT vpRGBf | operator* (double x, const vpRGBf &rgb) |
| VISP_EXPORT vpRGBf | operator* (float x, const vpRGBf &rgb) |
Class that defines a RGB 32-bit floating point structure that is used to build color images. RGB stands for red green blue color space.
|
inline |
Basic constructor.
Build a black value.
Definition at line 75 of file vpRGBf.h.
Referenced by operator!=(), operator*, operator*, operator+(), operator-(), operator<(), operator<<, operator=(), operator=(), operator=(), operator=(), operator=(), operator==(), operator>(), and vpRGBf().
|
inline |
|
inline |
|
inline |
|
inlinedefault |
|
inline |
| bool vpRGBf::operator!= | ( | const vpRGBf & | v | ) | const |
| vpColVector vpRGBf::operator* | ( | double | v | ) | const |
Multiplication operator : v * "this".
| v | : Value to multiply. |
Definition at line 215 of file vpRGBf.cpp.
| vpColVector vpRGBf::operator* | ( | float | v | ) | const |
| vpColVector vpRGBf::operator+ | ( | const vpColVector & | v | ) | const |
Addition operator : "this" + v.
| v | : Color to add to the current object "this". |
Definition at line 181 of file vpRGBf.cpp.
| vpColVector vpRGBf::operator- | ( | const vpColVector & | v | ) | const |
subtraction operator : "this" - v.
| v | : Color to subtract to the current object "this". |
Definition at line 164 of file vpRGBf.cpp.
| vpColVector vpRGBf::operator- | ( | const vpRGBf & | v | ) | const |
| bool vpRGBf::operator< | ( | const vpRGBf & | v | ) | const |
| vpRGBf & vpRGBf::operator= | ( | const vpColVector & | v | ) |
Cast a vpColVector in a vpRGBf
| v | : Input vector. v[0], v[1], v[2] are to make into relation with respectively R, G and B. |
| vpException::dimensionError | : If v is not a 3-dimensional vector. |
Definition at line 80 of file vpRGBf.cpp.
References B, vpException::dimensionError, G, R, and vpRGBf().
| BEGIN_VISP_NAMESPACE vpRGBf & vpRGBf::operator= | ( | float | v | ) |
Copy operator (from a floating-point value).
| v | : Input color ( R = G = B = v ) |
Definition at line 51 of file vpRGBf.cpp.
References B, G, R, and vpRGBf().
Referenced by operator=().
| vpRGBf & vpRGBf::operator= | ( | int | v | ) |
| bool vpRGBf::operator== | ( | const vpRGBf & | v | ) | const |
| bool vpRGBf::operator> | ( | const vpRGBf & | v | ) | const |
Scale RGB components by x.
| x | : Value used to scale RGB color components. |
| rgb | : RGB color components to rescale. |
Definition at line 250 of file vpRGBf.cpp.
References B, G, operator*(), R, and vpRGBf().
Scale RGB components by x.
| x | : Value used to scale RGB color components. |
| rgb | : RGB color components to rescale. |
Definition at line 266 of file vpRGBf.cpp.
References B, G, operator*(), R, and vpRGBf().
|
friend |
Writes the RGB 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 300 of file vpRGBf.cpp.
References B, G, operator<<, R, and vpRGBf().
Referenced by operator<<.
| float vpRGBf::B |
Blue component.
Definition at line 161 of file vpRGBf.h.
Referenced by vpImageConvert::convert(), vpImage< vpRGBa >::getMinMaxValue(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DPostProcessFilter::getRenderBasic(), operator!=(), operator*(), operator*, operator*(), operator*, operator+(), operator+(), operator-(), operator-(), operator<(), operator<<, operator=(), operator=(), operator=(), operator=(), operator==(), operator>(), vpRBProbabilistic3DDriftDetector::vpStored3DSurfaceColorPoint::ColorStatistics::probability(), vpRBProbabilistic3DDriftDetector::score(), vpPointMap::selectValidNewCandidates(), vpRBProbabilistic3DDriftDetector::vpStored3DSurfaceColorPoint::ColorStatistics::update(), vpRGBf(), vpRGBf(), vpRGBf(), vpRGBf(), and vpRGBf().
| float vpRGBf::G |
Green component.
Definition at line 160 of file vpRGBf.h.
Referenced by vpImageConvert::convert(), vpImage< vpRGBa >::getMinMaxValue(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DPostProcessFilter::getRenderBasic(), operator!=(), operator*(), operator*, operator*(), operator*, operator+(), operator+(), operator-(), operator-(), operator<(), operator<<, operator=(), operator=(), operator=(), operator=(), operator==(), operator>(), vpRBProbabilistic3DDriftDetector::vpStored3DSurfaceColorPoint::ColorStatistics::probability(), vpRBProbabilistic3DDriftDetector::score(), vpPointMap::selectValidNewCandidates(), vpRBProbabilistic3DDriftDetector::vpStored3DSurfaceColorPoint::ColorStatistics::update(), vpRGBf(), vpRGBf(), vpRGBf(), vpRGBf(), and vpRGBf().
| float vpRGBf::R |
Red component.
Definition at line 159 of file vpRGBf.h.
Referenced by vpImageConvert::convert(), vpImage< vpRGBa >::getMinMaxValue(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DPostProcessFilter::getRenderBasic(), operator!=(), operator*(), operator*, operator*(), operator*, operator+(), operator+(), operator-(), operator-(), operator<(), operator<<, operator=(), operator=(), operator=(), operator=(), operator==(), operator>(), vpRBProbabilistic3DDriftDetector::vpStored3DSurfaceColorPoint::ColorStatistics::probability(), vpRBProbabilistic3DDriftDetector::score(), vpPointMap::selectValidNewCandidates(), vpRBProbabilistic3DDriftDetector::vpStored3DSurfaceColorPoint::ColorStatistics::update(), vpRGBf(), vpRGBf(), vpRGBf(), vpRGBf(), and vpRGBf().