5 template<
class T>
class ScopeImage;
6 typedef std::shared_ptr<ScopeImage<uint16_t>> ScopeImageU16Ptr;
50 ScopeMultiImage(
const uint32_t& _area = 0,
const size_t& _nochannels = 1,
const uint32_t& _lines = 256,
const uint32_t& _linewidth = 256);
54 uint32_t Area()
const {
return area; }
56 uint32_t Lines()
const {
return lines; }
57 uint32_t Linewidth()
const {
return linewidth; }
58 uint32_t Pixels()
const {
return lines*
linewidth; }
63 uint16_t
GetPixel(
const size_t& _ch,
const uint32_t& _x,
const uint32_t& _y)
const;
67 std::vector<uint16_t>
GetMultiPixel(
const uint32_t& _x,
const uint32_t& _y)
const;
70 ScopeImageU16Ptr
GetChannel(
const size_t& chan)
const;
72 uint32_t GetAvgCount()
const {
return avg_count; }
74 uint32_t GetAvgMax()
const {
return avg_max; }
76 uint32_t GetImageNumber()
const {
return imagenumber; }
91 void SetChannel(
const size_t& _chan, ScopeImageU16Ptr
const _newimg);
100 void SetImageNumber(
const uint32_t& _imagenumber) { imagenumber = _imagenumber; }
117 typedef std::shared_ptr<ScopeMultiImage> ScopeMultiImagePtr;
119 typedef std::shared_ptr<const ScopeMultiImage> ScopeMultiImageCPtr;
void SetCompleteAvg(const bool &_complete)
Sets complete average.
bool complete_frame
false if frame not complete, allows for partial display during acquisition
uint32_t imagenumber
number of this image
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)
void SetImageNumber(const uint32_t &_imagenumber)
Sets the number of this image.
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.
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