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.

  1. __init__(self: visp._visp.core.RGBf) -> None

Basic constructor.

Build a black value.

  1. __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.

  1. __init__(self: visp._visp.core.RGBf, v: float) -> None

Constructor.

Initialize all the R, G, B components to v .

Parameters:
v

Value to set.

  1. __init__(self: visp._visp.core.RGBf, v: visp._visp.core.RGBf) -> None

Copy constructor.

  1. __init__(self: visp._visp.core.RGBf, v: visp._visp.core.ColVector) -> None

Create a RGB value from a 3 dimensional column vector.

R=v[0] G=v[1] B=v[2]

Methods

__init__

Overloaded function.

Inherited Methods

Operators

__add__

Overloaded function.

__doc__

__eq__

Compare two RGB values.

__gt__

__hash__

__init__

Overloaded function.

__lt__

__module__

__mul__

Overloaded function.

__ne__

Compare two color pixels.

__repr__

__sub__

Overloaded function.

Attributes

B

G

R

__annotations__

__hash__

__add__(*args, **kwargs)

Overloaded function.

  1. __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

  1. __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.

  1. __init__(self: visp._visp.core.RGBf) -> None

Basic constructor.

Build a black value.

  1. __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.

  1. __init__(self: visp._visp.core.RGBf, v: float) -> None

Constructor.

Initialize all the R, G, B components to v .

Parameters:
v

Value to set.

  1. __init__(self: visp._visp.core.RGBf, v: visp._visp.core.RGBf) -> None

Copy constructor.

  1. __init__(self: visp._visp.core.RGBf, v: visp._visp.core.ColVector) -> None

Create a RGB value from a 3 dimensional column vector.

R=v[0] G=v[1] B=v[2]

__lt__(self, v: visp._visp.core.RGBf) bool
__mul__(*args, **kwargs)

Overloaded function.

  1. __mul__(self: visp._visp.core.RGBf, v: float) -> visp._visp.core.ColVector

Parameters:
v

Value to multiply.

Returns:

v * “this”

  1. __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.

  1. __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

  1. __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