HistogramPeak¶
- class HistogramPeak(*args, **kwargs)¶
Bases:
pybind11_object
Declaration of the peak (maximum value) in a gray level image histogram.
A peak 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.HistogramPeak) -> None
Default constructor for a gray level histogram peak.
__init__(self: visp._visp.core.HistogramPeak, level: int, value: int) -> None
Default constructor for a gray level histogram peak.
__init__(self: visp._visp.core.HistogramPeak, p: visp._visp.core.HistogramPeak) -> None
Copy constructor of a gray level histogram peak.
Methods
Overloaded function.
Get the peak gray level .
Get the peak number of pixels having a same gray level.
Set the peak gray level and number of pixels at this gray level.
Set the peak gray level .
Set the peak number of pixels having a same gray level.
Inherited Methods
Operators
__doc__
Comparison operator.
Overloaded function.
__module__
__repr__
Attributes
__annotations__
- __eq__(self, p: visp._visp.core.HistogramPeak) bool ¶
Comparison operator.
- Parameters:
- p: visp._visp.core.HistogramPeak¶
Gray level histogram peak to compar.
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: visp._visp.core.HistogramPeak) -> None
Default constructor for a gray level histogram peak.
__init__(self: visp._visp.core.HistogramPeak, level: int, value: int) -> None
Default constructor for a gray level histogram peak.
__init__(self: visp._visp.core.HistogramPeak, p: visp._visp.core.HistogramPeak) -> None
Copy constructor of a gray level histogram peak.
- getLevel(self) int ¶
Get the peak gray level . The number of pixels having this gray level is available throw getValue() .
Note
See getValue()
- Returns:
Location of the peak or gray level.
- getValue(self) int ¶
Get the peak number of pixels having a same gray level. The corresponding gray level is available throw getLevel() .
Note
See getLevel()
- Returns:
: Number of pixels having the same location or gray level.
- set(self, lvl: int, val: int) None ¶
Set the peak gray level and number of pixels at this gray level.
Note
See setLevel() , setValue()
- setLevel(self, lvl: int) None ¶
Set the peak 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 peak number of pixels having a same gray level. To set the gray level of this peak use setLevel() .
Note
See setLevel() , set()
-
__hash__ =
None
¶