Visual Servoing Platform
version 3.5.1 under development (2023-09-22)
|
#include <visp3/core/vpHistogramPeak.h>
Public Member Functions | |
vpHistogramPeak () | |
vpHistogramPeak (unsigned char level, unsigned value) | |
vpHistogramPeak (const vpHistogramPeak &p) | |
virtual | ~vpHistogramPeak () |
vpHistogramPeak & | operator= (const vpHistogramPeak &p) |
bool | operator== (const vpHistogramPeak &p) const |
void | setLevel (unsigned char lvl) |
void | setValue (unsigned val) |
void | set (unsigned char lvl, unsigned val) |
unsigned char | getLevel () const |
unsigned | getValue () const |
Protected Attributes | |
unsigned char | level |
unsigned | value |
Friends | |
VISP_EXPORT std::ostream & | operator<< (std::ostream &s, const vpHistogramPeak &p) |
Related Functions | |
(Note that these are not member functions.) | |
VISP_EXPORT std::ostream & | operator<< (std::ostream &s, const vpHistogramPeak &p) |
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.
Definition at line 59 of file vpHistogramPeak.h.
vpHistogramPeak::vpHistogramPeak | ( | ) |
Defaut constructor for a gray level histogram peak.
Definition at line 49 of file vpHistogramPeak.cpp.
vpHistogramPeak::vpHistogramPeak | ( | unsigned char | lvl, |
unsigned | val | ||
) |
Defaut constructor for a gray level histogram peak.
Definition at line 54 of file vpHistogramPeak.cpp.
vpHistogramPeak::vpHistogramPeak | ( | const vpHistogramPeak & | p | ) |
Copy constructor of a gray level histogram peak.
Definition at line 59 of file vpHistogramPeak.cpp.
|
inlinevirtual |
Destructor that does nothing.
Definition at line 67 of file vpHistogramPeak.h.
|
inline |
Get the peak gray level. The number of pixels having this gray level is available throw getValue().
Definition at line 120 of file vpHistogramPeak.h.
Referenced by vpHistogram::getPeaks(), and vpHistogram::getValey().
|
inline |
Get the peak number of pixels having a same gray level. The corresponding gray level is available throw getLevel().
Definition at line 131 of file vpHistogramPeak.h.
Referenced by vpHistogram::getPeaks(), and vpHistogram::getValey().
vpHistogramPeak & vpHistogramPeak::operator= | ( | const vpHistogramPeak & | p | ) |
Copy operator.
p | : Histogram peak to copy. |
Definition at line 71 of file vpHistogramPeak.cpp.
References level, setLevel(), setValue(), and value.
bool vpHistogramPeak::operator== | ( | const vpHistogramPeak & | p | ) | const |
Comparison operator.
p | : Gray level histogram peak to compar. |
Definition at line 86 of file vpHistogramPeak.cpp.
|
inline |
Set the peak gray level and number of pixels at this gray level.
lvl | : Location of the peak or gray level. |
val | : Number of pixels having the same location or gray level. |
Definition at line 104 of file vpHistogramPeak.h.
Referenced by vpHistogram::getPeaks(), and vpHistogram::getValey().
|
inline |
Set the peak gray level. To set the number of pixels having this gray level use setValue().
lvl | : Location of the peak or gray level. |
Definition at line 82 of file vpHistogramPeak.h.
Referenced by operator=().
|
inline |
Set the peak number of pixels having a same gray level. To set the gray level of this peak use setLevel().
val | : Number of pixels having the same location or gray level. |
Definition at line 93 of file vpHistogramPeak.h.
Referenced by operator=().
|
friend |
std::cout a peak
Definition at line 92 of file vpHistogramPeak.cpp.
|
related |
std::cout a peak
Definition at line 92 of file vpHistogramPeak.cpp.
|
protected |
Definition at line 139 of file vpHistogramPeak.h.
Referenced by vpHistogramValey::getLevel(), operator=(), operator==(), and vpHistogramValey::operator==().
|
protected |
Gray level ot the peak.
Definition at line 140 of file vpHistogramPeak.h.
Referenced by vpHistogramValey::getValue(), operator=(), operator==(), and vpHistogramValey::operator==().