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.

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

Default constructor for a gray level histogram peak.

  1. __init__(self: visp._visp.core.HistogramPeak, level: int, value: int) -> None

Default constructor for a gray level histogram peak.

  1. __init__(self: visp._visp.core.HistogramPeak, p: visp._visp.core.HistogramPeak) -> None

Copy constructor of a gray level histogram peak.

Methods

__init__

Overloaded function.

getLevel

Get the peak gray level .

getValue

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

set

Set the peak gray level and number of pixels at this gray level.

setLevel

Set the peak gray level .

setValue

Set the peak 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, 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.

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

Default constructor for a gray level histogram peak.

  1. __init__(self: visp._visp.core.HistogramPeak, level: int, value: int) -> None

Default constructor for a gray level histogram peak.

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

Parameters:
lvl: int

Location of the peak or gray level.

val: int

Number of pixels having the same location or gray level.

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()

Parameters:
lvl: int

Location of the peak or gray level .

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()

Parameters:
val: int

Number of pixels having the same location or gray level.

__hash__ = None