2 #include "ScopeMultiImage.h"
3 #include "ScopeImage.h"
9 , nochannels(_nochannels)
11 , linewidth(_linewidth)
12 , channels(_nochannels)
17 , complete_frame(false)
18 , percent_complete(0.0) {
30 std::vector<uint16_t> multipix(0);
32 multipix.push_back(img->Pixel(_x, _y));
42 assert( (_newimg->Lines() ==
lines) && (_newimg->Linewidth() ==
linewidth) );
58 ch->SetCompleteFrame(_complete);
65 ch->SetPercentComplete(_percent);
71 ch->SetCompleteAvg(_complete);
void SetCompleteAvg(const bool &_complete)
Sets complete average.
bool complete_frame
false if frame not complete, allows for partial display during acquisition
void FillRandom()
Fills the multi image with random data.
ScopeImageU16Ptr GetChannel(const size_t &chan) const
std::vector< uint16_t > GetMultiPixel(const uint32_t &_x, const uint32_t &_y) const
const uint32_t linewidth
the linewidth (x-resolution)
void SetCompleteFrame(const bool &_complete)
Sets frame complete.
const uint32_t lines
number of lines (y-resolution)
uint32_t avg_count
this image is the xth average
ScopeMultiImage(const uint32_t &_area=0, const size_t &_nochannels=1, const uint32_t &_lines=256, const uint32_t &_linewidth=256)
Initializes and generate blank images for each channel.
void SetPercentComplete(const double &_percent)
Sets percent complete.
void SetChannel(const size_t &_chan, ScopeImageU16Ptr const _newimg)
Replaces one channel of the multiimage.
This is the include file for standard system include files, or project specific include files that ar...
bool complete_avg
false if this is a not completely averaged frame, this is then only for display purpose and will not ...
const uint32_t area
the area from which the multi image comes
const size_t nochannels
number of channels
void SetAvgMax(const uint32_t &_avg_max)
Sets the maximum average count.
std::vector< ScopeImageU16Ptr > channels
the ScopeImages that contain the data for each channel
void SetAvgCount(const uint32_t &_avg_count)
Sets the average count of this image.
double percent_complete
how many percent of the frame are already filled
uint16_t GetPixel(const size_t &_ch, const uint32_t &_x, const uint32_t &_y) const