RGBf¶
- class RGBf(*args, **kwargs)¶
Bases:
pybind11_object
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.
Note
See vpRGBa
Note
See vpImage
Overloaded function.
__init__(self: visp._visp.core.RGBf) -> None
Basic constructor.
Build a black value.
__init__(self: visp._visp.core.RGBf, r: float, g: float, b: float) -> None
Constructor.
Initialize the color with R, G, B values.
- Parameters:
- r
Red value.
- g
Green value.
- b
Blue value.
__init__(self: visp._visp.core.RGBf, v: float) -> None
__init__(self: visp._visp.core.RGBf, v: int) -> None
__init__(self: visp._visp.core.RGBf, v: visp._visp.core.RGBf) -> None
Copy constructor.
__init__(self: visp._visp.core.RGBf, v: visp._visp.core.ColVector) -> None
Methods
Overloaded function.
Inherited Methods
Operators
Overloaded function.
__doc__
Compare two RGB values.
Overloaded function.
__module__
Overloaded function.
Compare two color pixels.
__repr__
Overloaded function.
Attributes
B
G
R
__annotations__
- __add__(*args, **kwargs)¶
Overloaded function.
__add__(self: visp._visp.core.RGBf, v: visp._visp.core.RGBf) -> visp._visp.core.RGBf
Warning
in case of overflow : e.g. 128+128 returns 0 for all 4 channels
- Parameters:
- v
Color to add to the current object “this”.
- Returns:
“this” + v
__add__(self: visp._visp.core.RGBf, v: visp._visp.core.ColVector) -> visp._visp.core.ColVector
- Parameters:
- v
Color to add to the current object “this”.
- Returns:
“this” + v
- __eq__(self, v: visp._visp.core.RGBf) bool ¶
Compare two RGB values.
- Returns:
true if the values are exactly the same, false otherwise.
- __gt__(self, v: visp._visp.core.RGBf) bool ¶
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: visp._visp.core.RGBf) -> None
Basic constructor.
Build a black value.
__init__(self: visp._visp.core.RGBf, r: float, g: float, b: float) -> None
Constructor.
Initialize the color with R, G, B values.
- Parameters:
- r
Red value.
- g
Green value.
- b
Blue value.
__init__(self: visp._visp.core.RGBf, v: float) -> None
__init__(self: visp._visp.core.RGBf, v: int) -> None
__init__(self: visp._visp.core.RGBf, v: visp._visp.core.RGBf) -> None
Copy constructor.
__init__(self: visp._visp.core.RGBf, v: visp._visp.core.ColVector) -> None
- __lt__(self, v: visp._visp.core.RGBf) bool ¶
- __mul__(*args, **kwargs)¶
Overloaded function.
__mul__(self: visp._visp.core.RGBf, v: float) -> visp._visp.core.ColVector
- Parameters:
- v
Value to multiply.
- Returns:
v * “this”
__mul__(self: visp._visp.core.RGBf, v: float) -> visp._visp.core.ColVector
- Parameters:
- v
Value to multiply.
- Returns:
v * “this”
- __ne__(self, v: visp._visp.core.RGBf) bool ¶
Compare two color pixels.
- Returns:
true if the values are different, false if they are exactly the same.
- __sub__(*args, **kwargs)¶
Overloaded function.
__sub__(self: visp._visp.core.RGBf, v: visp._visp.core.RGBf) -> visp._visp.core.ColVector
- Parameters:
- v
Color to subtract to the current object “this”.
- Returns:
“this” - v
__sub__(self: visp._visp.core.RGBf, v: visp._visp.core.ColVector) -> visp._visp.core.ColVector
- Parameters:
- v
Color to subtract to the current object “this”.
- Returns:
“this” - v
-
__hash__ =
None
¶