HistogramValey

class HistogramValey(*args, **kwargs)

Bases: pybind11_object

Declaration of the valey (minimum value) in a gray level image histogram.

A valey is internally represented as a gray level and a value . The value represents the number of pixels having the gray level .

Overloaded function.

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

  2. __init__(self: visp._visp.core.HistogramValey, lvl: int, val: int) -> None

  3. __init__(self: visp._visp.core.HistogramValey, v: visp._visp.core.HistogramValey) -> None

Methods

__init__

Overloaded function.

getLevel

Get the valey gray level .

getValue

Get the valey number of pixels having a same gray level.

set

Set the valey gray level and number of pixels at this location.

setLevel

Set the valey gray level .

setValue

Set the valey number of pixels having a same gray level.

Inherited Methods

Operators

__doc__

__eq__

Comparison operator.

__hash__

__init__

Overloaded function.

__module__

__repr__

Attributes

__annotations__

__hash__

__eq__(self, v: visp._visp.core.HistogramValey) bool

Comparison operator.

Parameters:
v: visp._visp.core.HistogramValey

Gray level histogram valey to compar.

__init__(*args, **kwargs)

Overloaded function.

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

  2. __init__(self: visp._visp.core.HistogramValey, lvl: int, val: int) -> None

  3. __init__(self: visp._visp.core.HistogramValey, v: visp._visp.core.HistogramValey) -> None

getLevel(self) int

Get the valey gray level . The number of pixels having this gray level is available through getValue() .

Note

See getValue()

Returns:

Location of the valey or gray level.

getValue(self) int

Get the valey number of pixels having a same gray level. The corresponding gray level is available through getLevel() .

Note

See getLevel()

Returns:

Number of pixels having the same location or gray level.

set(self, lvl: int, val: int) None

Set the valey gray level and number of pixels at this location.

Note

See setLevel() , setValue()

Parameters:
lvl: int

Location of the valey or gray level.

val: int

Number of pixels having the same location or gray level.

setLevel(self, lvl: int) None

Set the valey gray level . To set the number of pixels having this gray level use setValue() .

Note

See setValue() , set()

Parameters:
lvl: int

Location of the valey or gray level.

setValue(self, val: int) None

Set the valey number of pixels having a same gray level. To set the gray level of this valey use setLevel() .

Note

See setPosition(), set()

Parameters:
val: int

Number of pixels having the same location or gray level.

__hash__ = None