![]() |
Visual Servoing Platform version 3.6.0
|
#include <vpRGBf.h>
Public Member Functions | |
| vpRGBf () | |
| vpRGBf (float r, float g, float b) | |
| vpRGBf (float v) | |
| vpRGBf (const vpRGBf &v) | |
| vpRGBf (const vpColVector &v) | |
| vpRGBf & | operator= (float 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) |
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 64 of file vpRGBf.h.
Referenced by operator!=(), operator*, operator+(), operator-(), operator<(), operator<<, operator=(), operator=(), operator=(), operator=(), operator==(), operator>(), and vpRGBf().
|
inline |
|
inline |
|
inline |
|
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 209 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 167 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-dimentional vector. |
Definition at line 93 of file vpRGBf.cpp.
References B, vpException::dimensionError, G, vpArray2D< Type >::getRows(), R, vpERROR_TRACE, and vpRGBf().
| vpRGBf & vpRGBf::operator= | ( | float | v | ) |
| bool vpRGBf::operator== | ( | const vpRGBf & | v | ) | const |
| bool vpRGBf::operator> | ( | const vpRGBf & | v | ) | const |
Definition at line 234 of file vpRGBf.cpp.
References operator*(), 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 257 of file vpRGBf.cpp.
References B, G, operator<<, R, and vpRGBf().
Referenced by operator<<.
| float vpRGBf::B |
Blue component.
Definition at line 127 of file vpRGBf.h.
Referenced by vpImageConvert::convert(), vpImage< vpRGBa >::getMinMaxValue(), operator!=(), operator*(), operator*(), operator+(), operator+(), operator-(), operator-(), operator<(), operator<<, operator=(), operator=(), operator=(), operator=(), operator==(), operator>(), vpRGBf(), vpRGBf(), vpRGBf(), vpRGBf(), and vpRGBf().
| float vpRGBf::G |
Green component.
Definition at line 126 of file vpRGBf.h.
Referenced by vpImageConvert::convert(), vpImage< vpRGBa >::getMinMaxValue(), operator!=(), operator*(), operator*(), operator+(), operator+(), operator-(), operator-(), operator<(), operator<<, operator=(), operator=(), operator=(), operator=(), operator==(), operator>(), vpRGBf(), vpRGBf(), vpRGBf(), vpRGBf(), and vpRGBf().
| float vpRGBf::R |
Red component.
Definition at line 125 of file vpRGBf.h.
Referenced by vpImageConvert::convert(), vpImage< vpRGBa >::getMinMaxValue(), operator!=(), operator*(), operator*(), operator+(), operator+(), operator-(), operator-(), operator<(), operator<<, operator=(), operator=(), operator=(), operator=(), operator==(), operator>(), vpRGBf(), vpRGBf(), vpRGBf(), vpRGBf(), and vpRGBf().