Scope
|
#include <ScopeHistogram.h>
Public Member Functions | |
ScopeHistogram (const uint32_t &_no_of_bins=512, const uint16_t &_range=UINT16_MAX) | |
ScopeHistogram (const ScopeHistogram &_h) | |
double | Binsize () const |
void | Calculate (ScopeImageU16CPtr const _img, const bool &_loghistogram=false) |
void | Resize (const uint32_t &_no_of_bins) |
uint32_t | MaxCount () const |
uint16_t | FirstCountPosition () const |
uint16_t | LastCountPosition () const |
const std::vector< uint32_t > * | GetHistConst () const |
void | ReleaseHistConst () const |
Protected Attributes | |
std::mutex | mutex |
const uint16_t | range |
double | binsize |
std::vector< uint32_t > | hist |
A histogram for a uint16_t image with uint32_t counts.
Definition at line 9 of file ScopeHistogram.h.
scope::ScopeHistogram::ScopeHistogram | ( | const uint32_t & | _no_of_bins = 512 , |
const uint16_t & | _range = UINT16_MAX |
||
) |
Initialize to binsize 1 (histogram size is thus UINT16_MAX+1) and zero counts.
Definition at line 9 of file ScopeHistogram.cpp.
scope::ScopeHistogram::ScopeHistogram | ( | const ScopeHistogram & | _h | ) |
safe copy constructor
Definition at line 15 of file ScopeHistogram.cpp.
double scope::ScopeHistogram::Binsize | ( | ) | const |
Definition at line 22 of file ScopeHistogram.cpp.
void scope::ScopeHistogram::Calculate | ( | ScopeImageU16CPtr const | _img, |
const bool & | _loghistogram = false |
||
) |
Calculate the histogram.
[in] | _img | the uint16 ScopeImage to calculate from |
[in] | _loghistogram | if true the histogram contains the logarithms of the counts, if false it contains the counts |
Definition at line 27 of file ScopeHistogram.cpp.
void scope::ScopeHistogram::Resize | ( | const uint32_t & | _no_of_bins | ) |
Resize the histogram to a new number of bins.
Definition at line 55 of file ScopeHistogram.cpp.
uint32_t scope::ScopeHistogram::MaxCount | ( | ) | const |
Definition at line 63 of file ScopeHistogram.cpp.
uint16_t scope::ScopeHistogram::FirstCountPosition | ( | ) | const |
Definition at line 68 of file ScopeHistogram.cpp.
uint16_t scope::ScopeHistogram::LastCountPosition | ( | ) | const |
Definition at line 78 of file ScopeHistogram.cpp.
const std::vector< uint32_t > * scope::ScopeHistogram::GetHistConst | ( | ) | const |
Definition at line 88 of file ScopeHistogram.cpp.
void scope::ScopeHistogram::ReleaseHistConst | ( | ) | const |
Definition at line 93 of file ScopeHistogram.cpp.
|
mutableprotected |
for data protection
Definition at line 13 of file ScopeHistogram.h.
|
protected |
range of uint16 to do histogram of
Definition at line 16 of file ScopeHistogram.h.
|
protected |
size of each bin
Definition at line 19 of file ScopeHistogram.h.
|
protected |
data vector
Definition at line 22 of file ScopeHistogram.h.