RGBa¶
- class RGBa(*args, **kwargs)¶
Bases:
pybind11_object
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 .
Note
See vpImage
Overloaded function.
__init__(self: visp._visp.core.RGBa) -> None
Basic constructor.
Build a black value.
__init__(self: visp._visp.core.RGBa, r: int, g: int, b: int, a: int) -> None
Constructor.
Initialize the color with R, G, B, A values.
- Parameters:
- r
Red value.
- g
Green value.
- b
Blue value.
- a
Additional value.
__init__(self: visp._visp.core.RGBa, v: int) -> None
__init__(self: visp._visp.core.RGBa, v: int) -> None
__init__(self: visp._visp.core.RGBa, v: int) -> None
__init__(self: visp._visp.core.RGBa, v: visp._visp.core.RGBa) -> None
Copy constructor.
__init__(self: visp._visp.core.RGBa, v: visp._visp.core.ColVector) -> None
Methods
Overloaded function.
Inherited Methods
Operators
Overloaded function.
__annotations__
__doc__
Compare two RGBa values.
Overloaded function.
__module__
Overloaded function.
Compare two color pixels.
__repr__
Overloaded function.
Attributes
A
B
G
R
__annotations__
alpha_default
- __add__(*args, **kwargs)¶
Overloaded function.
__add__(self: visp._visp.core.RGBa, v: visp._visp.core.RGBa) -> visp._visp.core.RGBa
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.RGBa, 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.RGBa) bool ¶
Compare two RGBa values.
- Returns:
true if the values are the same, false otherwise.
- __gt__(self, v: visp._visp.core.RGBa) bool ¶
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: visp._visp.core.RGBa) -> None
Basic constructor.
Build a black value.
__init__(self: visp._visp.core.RGBa, r: int, g: int, b: int, a: int) -> None
Constructor.
Initialize the color with R, G, B, A values.
- Parameters:
- r
Red value.
- g
Green value.
- b
Blue value.
- a
Additional value.
__init__(self: visp._visp.core.RGBa, v: int) -> None
__init__(self: visp._visp.core.RGBa, v: int) -> None
__init__(self: visp._visp.core.RGBa, v: int) -> None
__init__(self: visp._visp.core.RGBa, v: visp._visp.core.RGBa) -> None
Copy constructor.
__init__(self: visp._visp.core.RGBa, v: visp._visp.core.ColVector) -> None
- __lt__(self, v: visp._visp.core.RGBa) bool ¶
- __mul__(*args, **kwargs)¶
Overloaded function.
__mul__(self: visp._visp.core.RGBa, v: float) -> visp._visp.core.ColVector
- Parameters:
- v
Value to multiply.
- Returns:
v * “this”
__mul__(self: visp._visp.core.RGBa, v: float) -> visp._visp.core.ColVector
- Parameters:
- v
Value to multiply.
- Returns:
v * “this”
- __ne__(self, v: visp._visp.core.RGBa) bool ¶
Compare two color pixels.
- Returns:
true if the images are different, false if they are the same.
- __sub__(*args, **kwargs)¶
Overloaded function.
__sub__(self: visp._visp.core.RGBa, v: visp._visp.core.RGBa) -> visp._visp.core.ColVector
- Parameters:
- v
Color to subtract to the current object “this”.
- Returns:
“this” - v
__sub__(self: visp._visp.core.RGBa, v: visp._visp.core.ColVector) -> visp._visp.core.ColVector
- Parameters:
- v
Color to subtract to the current object “this”.
- Returns:
“this” - v
-
__hash__ =
None
¶