Visual Servoing Platform
version 3.6.1 under development (2024-11-21)
|
#include <visp3/core/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) | |
VP_EXPLICIT | vpRGBf (const vpColVector &v) |
vpRGBf & | operator= (float v) |
vpRGBf & | operator= (int v) |
vpRGBf & | operator= (const vpRGBf &v) |
vpRGBf & | operator= (const vpRGBf &&v) |
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) |
Related Functions | |
(Note that these are not member functions.) | |
VISP_EXPORT std::ostream & | operator<< (std::ostream &os, 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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool vpRGBf::operator!= | ( | const vpRGBf & | v | ) | const |
Compare two color pixels.
Definition at line 144 of file vpRGBf.cpp.
vpColVector vpRGBf::operator* | ( | double | v | ) | const |
Multiplication operator : v * "this".
v | : Value to multiply. |
Definition at line 239 of file vpRGBf.cpp.
vpColVector vpRGBf::operator* | ( | float | v | ) | const |
Multiplication operator : v * "this".
v | : Value to multiply. |
Definition at line 222 of file vpRGBf.cpp.
vpColVector vpRGBf::operator+ | ( | const vpColVector & | v | ) | const |
Addition operator : "this" + v.
v | : Color to add to the current object "this". |
Definition at line 205 of file vpRGBf.cpp.
Addition operator : "this" + v.
v | : Color to add to the current object "this". |
Definition at line 174 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 188 of file vpRGBf.cpp.
vpColVector vpRGBf::operator- | ( | const vpRGBf & | v | ) | const |
subtraction operator : "this" - v.
v | : Color to subtract to the current object "this". |
Definition at line 156 of file vpRGBf.cpp.
bool vpRGBf::operator< | ( | const vpRGBf & | v | ) | const |
Definition at line 251 of file vpRGBf.cpp.
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 104 of file vpRGBf.cpp.
References B, vpException::dimensionError, G, vpArray2D< Type >::getRows(), and R.
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.
vpRGBf & vpRGBf::operator= | ( | int | v | ) |
Copy operator.
v | : Input color ( R = G = B = v ) |
Definition at line 64 of file vpRGBf.cpp.
bool vpRGBf::operator== | ( | const vpRGBf & | v | ) | const |
Compare two RGB values.
Definition at line 125 of file vpRGBf.cpp.
bool vpRGBf::operator> | ( | const vpRGBf & | v | ) | const |
Definition at line 259 of file vpRGBf.cpp.
Scale RGB components by x.
x | : Value used to scale RGB color components. |
rgb | : RGB color components to rescale. |
Definition at line 274 of file vpRGBf.cpp.
Scale RGB components by x.
x | : Value used to scale RGB color components. |
rgb | : RGB color components to rescale. |
Definition at line 290 of file vpRGBf.cpp.
|
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 324 of file vpRGBf.cpp.
|
related |
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 324 of file vpRGBf.cpp.
float vpRGBf::B |
Blue component.
Definition at line 142 of file vpRGBf.h.
Referenced by vpImageConvert::convert(), vpImage< Type >::getMinMaxValue(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DPostProcessFilter::getRenderBasic(), operator!=(), operator*(), operator+(), operator-(), operator<(), operator=(), operator==(), and operator>().
float vpRGBf::G |
Green component.
Definition at line 141 of file vpRGBf.h.
Referenced by vpImageConvert::convert(), vpImage< Type >::getMinMaxValue(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DPostProcessFilter::getRenderBasic(), operator!=(), operator*(), operator+(), operator-(), operator<(), operator=(), operator==(), and operator>().
float vpRGBf::R |
Red component.
Definition at line 140 of file vpRGBf.h.
Referenced by vpImageConvert::convert(), vpImage< Type >::getMinMaxValue(), vpPanda3DGeometryRenderer::getRender(), vpPanda3DPostProcessFilter::getRenderBasic(), operator!=(), operator*(), operator+(), operator-(), operator<(), operator=(), operator==(), and operator>().