Scope
|
#include <ScopeMultiHistogram.h>
Public Member Functions | |
ScopeMultiHistogram (const uint32_t &_area=0, const uint32_t &_channels=1, const uint32_t &_no_of_bins=512, uint16_t _range=UINT16_MAX) | |
void | Calculate (ScopeMultiImageCPtr const _multi, const bool &_loghistogram=false) |
void | Resize (const uint32_t &_no_of_bins) |
std::vector< uint32_t > | MaxCounts () const |
std::vector< uint16_t > | FirstCountPositions () const |
std::vector< uint16_t > | LastCountPositions () const |
const std::vector< uint32_t > * | GetHistConst (const uint32_t &_c) const |
void | ReleaseHistConst (const uint32_t &_c) const |
Protected Attributes | |
const uint32_t | area |
const uint32_t | channels |
std::vector< ScopeHistogramPtr > | hists |
A multi channel histogram.
Mutex-protected if you use GetHist and ReleaseHist correctly
Definition at line 17 of file ScopeMultiHistogram.h.
scope::ScopeMultiHistogram::ScopeMultiHistogram | ( | const uint32_t & | _area = 0 , |
const uint32_t & | _channels = 1 , |
||
const uint32_t & | _no_of_bins = 512 , |
||
uint16_t | _range = UINT16_MAX |
||
) |
Initialize all channels.
Definition at line 8 of file ScopeMultiHistogram.cpp.
void scope::ScopeMultiHistogram::Calculate | ( | ScopeMultiImageCPtr const | _multi, |
const bool & | _loghistogram = false |
||
) |
[in] | _multi | the multi image to calculate the multi histogram for |
[in] | _loghistogram | if true the histogram contains the logarithms of the counts, if false it contains the counts |
Definition at line 16 of file ScopeMultiHistogram.cpp.
void scope::ScopeMultiHistogram::Resize | ( | const uint32_t & | _no_of_bins | ) |
Resize the multi histogram to a new number of bins.
Definition at line 22 of file ScopeMultiHistogram.cpp.
std::vector< uint32_t > scope::ScopeMultiHistogram::MaxCounts | ( | ) | const |
Definition at line 27 of file ScopeMultiHistogram.cpp.
std::vector< uint16_t > scope::ScopeMultiHistogram::FirstCountPositions | ( | ) | const |
Definition at line 34 of file ScopeMultiHistogram.cpp.
std::vector< uint16_t > scope::ScopeMultiHistogram::LastCountPositions | ( | ) | const |
Definition at line 41 of file ScopeMultiHistogram.cpp.
const std::vector< uint32_t > * scope::ScopeMultiHistogram::GetHistConst | ( | const uint32_t & | _c | ) | const |
Definition at line 48 of file ScopeMultiHistogram.cpp.
void scope::ScopeMultiHistogram::ReleaseHistConst | ( | const uint32_t & | _c | ) | const |
Definition at line 52 of file ScopeMultiHistogram.cpp.
|
protected |
area of the histogram
Definition at line 21 of file ScopeMultiHistogram.h.
|
protected |
number of channels in the area/histogram
Definition at line 24 of file ScopeMultiHistogram.h.
|
protected |
vector with histograms for each channel
Definition at line 27 of file ScopeMultiHistogram.h.