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.
__init__(self: visp._visp.core.HistogramValey) -> None
__init__(self: visp._visp.core.HistogramValey, lvl: int, val: int) -> None
__init__(self: visp._visp.core.HistogramValey, v: visp._visp.core.HistogramValey) -> None
Methods
Overloaded function.
Get the valey gray level .
Get the valey number of pixels having a same gray level.
Set the valey gray level and number of pixels at this location.
Set the valey gray level .
Set the valey number of pixels having a same gray level.
Inherited Methods
Operators
__doc__
Comparison operator.
Overloaded function.
__module__
__repr__
Attributes
__annotations__
- __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.
__init__(self: visp._visp.core.HistogramValey) -> None
__init__(self: visp._visp.core.HistogramValey, lvl: int, val: int) -> None
__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()
- 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()
- 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()
-
__hash__ =
None
¶