Visual Servoing Platform
version 3.6.1 under development (2024-11-21)
|
#include <visp3/core/vpHistogramValey.h>
Public Member Functions | |
vpHistogramValey () | |
vpHistogramValey (unsigned char lvl, unsigned val) | |
vpHistogramValey (const vpHistogramValey &v) | |
vpHistogramValey & | operator= (const vpHistogramValey &v) |
bool | operator== (const vpHistogramValey &v) const |
void | setLevel (unsigned char lvl) |
void | setValue (unsigned val) |
void | set (unsigned char lvl, unsigned val) |
unsigned char | getLevel () const |
unsigned | getValue () const |
Private Member Functions | |
bool | operator== (const vpHistogramPeak &p) const |
VISP_EXPORT std::ostream & | operator<< (std::ostream &s, const vpHistogramPeak &p) |
Friends | |
VISP_EXPORT std::ostream & | operator<< (std::ostream &s, const vpHistogramValey &v) |
Related Functions | |
(Note that these are not member functions.) | |
VISP_EXPORT std::ostream & | operator<< (std::ostream &s, const vpHistogramValey &v) |
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.
Definition at line 59 of file vpHistogramValey.h.
|
inline |
Definition at line 62 of file vpHistogramValey.h.
|
inline |
Definition at line 64 of file vpHistogramValey.h.
|
inline |
Definition at line 66 of file vpHistogramValey.h.
|
inline |
Get the valey gray level. The number of pixels having this gray level is available through getValue().
Definition at line 119 of file vpHistogramValey.h.
References vpHistogramPeak::level.
|
inline |
Get the valey number of pixels having a same gray level. The corresponding gray level is available through getLevel().
Definition at line 130 of file vpHistogramValey.h.
References vpHistogramPeak::value.
BEGIN_VISP_NAMESPACE vpHistogramValey & vpHistogramValey::operator= | ( | const vpHistogramValey & | v | ) |
Copy operator.
v | : Histogram valey to copy. |
Definition at line 56 of file vpHistogramValey.cpp.
References setLevel(), and setValue().
bool vpHistogramValey::operator== | ( | const vpHistogramValey & | v | ) | const |
Comparison operator.
v | : Gray level histogram valey to compar. |
Definition at line 71 of file vpHistogramValey.cpp.
References vpHistogramPeak::level, and vpHistogramPeak::value.
|
inline |
Set the valey gray level and number of pixels at this location.
lvl | : Location of the valey or gray level. |
val | : Number of pixels having the same location or gray level. |
Definition at line 103 of file vpHistogramValey.h.
Referenced by vpHistogram::getPeaks(), and vpHistogram::getValey().
|
inline |
Set the valey gray level. To set the number of pixels having this gray level use setValue().
lvl | : Location of the valey or gray level. |
Definition at line 81 of file vpHistogramValey.h.
Referenced by operator=().
|
inline |
Set the valey number of pixels having a same gray level. To set the gray level of this valey use setLevel().
val | : Number of pixels having the same location or gray level. |
Definition at line 92 of file vpHistogramValey.h.
Referenced by operator=().
|
friend |
std::cout a valey
Definition at line 80 of file vpHistogramValey.cpp.
|
related |
std::cout a valey
Definition at line 80 of file vpHistogramValey.cpp.