3 #include "ScopeImage.h" 
   22     std::vector<uint32_t> 
hist;
 
   26     ScopeHistogram(
const uint32_t& _no_of_bins = 512, 
const uint16_t& _range = UINT16_MAX);
 
   37     void Calculate(ScopeImageU16CPtr 
const _img, 
const bool& _loghistogram = 
false);
 
   41     void Resize(
const uint32_t& _no_of_bins);
 
   61 typedef std::shared_ptr<ScopeHistogram> ScopeHistogramPtr;
 
A histogram for a uint16_t image with uint32_t counts. 
const uint16_t range
range of uint16 to do histogram of 
uint16_t FirstCountPosition() const 
double binsize
size of each bin 
void ReleaseHistConst() const 
In here all declarations for all kinds of datatypes Scope needs. 
uint16_t LastCountPosition() const 
std::vector< uint32_t > hist
data vector 
const std::vector< uint32_t > * GetHistConst() const 
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. 
void Resize(const uint32_t &_no_of_bins)
Resize the histogram to a new number of bins. 
void Calculate(ScopeImageU16CPtr const _img, const bool &_loghistogram=false)
Calculate the histogram. 
std::mutex mutex
for data protection 
uint32_t MaxCount() const