![]() |
Visual Servoing Platform version 3.7.0
|
#include <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) |
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 60 of file vpHistogramPeak.h.
| BEGIN_VISP_NAMESPACE vpHistogramPeak::vpHistogramPeak | ( | ) |
Default constructor for a gray level histogram peak.
Definition at line 48 of file vpHistogramPeak.cpp.
Referenced by operator<<, operator=(), operator==(), vpHistogramPeak(), vpHistogramValey::vpHistogramValey(), vpHistogramValey::vpHistogramValey(), and vpHistogramValey::vpHistogramValey().
| vpHistogramPeak::vpHistogramPeak | ( | unsigned char | lvl, |
| unsigned | val ) |
Default constructor for a gray level histogram peak.
Definition at line 53 of file vpHistogramPeak.cpp.
| vpHistogramPeak::vpHistogramPeak | ( | const vpHistogramPeak & | p | ) |
Copy constructor of a gray level histogram peak.
Definition at line 58 of file vpHistogramPeak.cpp.
References level, value, and vpHistogramPeak().
|
inlinevirtual |
Destructor that does nothing.
Definition at line 68 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 121 of file vpHistogramPeak.h.
References level.
Referenced by vpHistogram::getPeaks(), vpHistogram::getPeaks(), vpHistogram::getValey(), 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 132 of file vpHistogramPeak.h.
References value.
Referenced by vpHistogram::getPeaks(), vpHistogram::getValey(), and vpHistogram::getValey().
| vpHistogramPeak & vpHistogramPeak::operator= | ( | const vpHistogramPeak & | p | ) |
Copy operator.
| p | : Histogram peak to copy. |
Definition at line 70 of file vpHistogramPeak.cpp.
References setLevel(), setValue(), and vpHistogramPeak().
| bool vpHistogramPeak::operator== | ( | const vpHistogramPeak & | p | ) | const |
Comparison operator.
| p | : Gray level histogram peak to compar. |
Definition at line 85 of file vpHistogramPeak.cpp.
References level, value, and vpHistogramPeak().
|
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 105 of file vpHistogramPeak.h.
Referenced by vpHistogram::getPeaks(), 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 83 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 94 of file vpHistogramPeak.h.
Referenced by operator=().
|
friend |
std::cout a peak
Definition at line 91 of file vpHistogramPeak.cpp.
References operator<<, and vpHistogramPeak().
Referenced by operator<<.
|
protected |
Definition at line 140 of file vpHistogramPeak.h.
Referenced by getLevel(), vpHistogramValey::getLevel(), operator==(), vpHistogramValey::operator==(), vpHistogramValey::set(), vpHistogramValey::setLevel(), vpHistogramPeak(), vpHistogramPeak(), and vpHistogramPeak().
|
protected |
Gray level ot the peak.
Definition at line 141 of file vpHistogramPeak.h.
Referenced by gen_java.ConstInfo::__repr__(), getValue(), vpHistogramValey::getValue(), operator==(), vpHistogramValey::operator==(), vpHistogramValey::set(), vpHistogramValey::setValue(), vpHistogramPeak(), vpHistogramPeak(), and vpHistogramPeak().