Scope
|
#include <ScopeMultiImage.h>
Inherited by scope::ScopeMultiImageResonanceSW.
Public Member Functions | |
ScopeMultiImage (const uint32_t &_area=0, const size_t &_nochannels=1, const uint32_t &_lines=256, const uint32_t &_linewidth=256) | |
void | FillRandom () |
Several accessor methods | |
uint32_t | Area () const |
size_t | Channels () const |
uint32_t | Lines () const |
uint32_t | Linewidth () const |
uint32_t | Pixels () const |
uint16_t | GetPixel (const size_t &_ch, const uint32_t &_x, const uint32_t &_y) const |
std::vector< uint16_t > | GetMultiPixel (const uint32_t &_x, const uint32_t &_y) const |
ScopeImageU16Ptr | GetChannel (const size_t &chan) const |
uint32_t | GetAvgCount () const |
uint32_t | GetAvgMax () const |
uint32_t | GetImageNumber () const |
bool | IsCompleteFrame () const |
bool | IsCompleteAvg () const |
double | PercentComplete () const |
Several mutator methods | |
void | SetChannel (const size_t &_chan, ScopeImageU16Ptr const _newimg) |
void | SetAvgCount (const uint32_t &_avg_count) |
void | SetAvgMax (const uint32_t &_avg_max) |
void | SetImageNumber (const uint32_t &_imagenumber) |
void | SetCompleteFrame (const bool &_complete) |
void | SetCompleteAvg (const bool &_complete) |
void | SetPercentComplete (const double &_percent) |
Protected Attributes | |
const uint32_t | area |
const size_t | nochannels |
const uint32_t | lines |
const uint32_t | linewidth |
std::vector< ScopeImageU16Ptr > | channels |
uint32_t | avg_count |
uint32_t | avg_max |
bool | complete_avg |
uint32_t | imagenumber |
bool | complete_frame |
double | percent_complete |
A multichannel image.
Definition at line 12 of file ScopeMultiImage.h.
scope::ScopeMultiImage::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.
Definition at line 7 of file ScopeMultiImage.cpp.
uint16_t scope::ScopeMultiImage::GetPixel | ( | const size_t & | _ch, |
const uint32_t & | _x, | ||
const uint32_t & | _y | ||
) | const |
[in] | _ch | which channel |
[in] | _x,_y | which pixel |
Definition at line 24 of file ScopeMultiImage.cpp.
std::vector< uint16_t > scope::ScopeMultiImage::GetMultiPixel | ( | const uint32_t & | _x, |
const uint32_t & | _y | ||
) | const |
[in] | _x,_y | which pixel |
Definition at line 29 of file ScopeMultiImage.cpp.
ScopeImageU16Ptr scope::ScopeMultiImage::GetChannel | ( | const size_t & | chan | ) | const |
Definition at line 36 of file ScopeMultiImage.cpp.
void scope::ScopeMultiImage::SetChannel | ( | const size_t & | _chan, |
ScopeImageU16Ptr const | _newimg | ||
) |
Replaces one channel of the multiimage.
[in] | _chan | channel to be replaced |
[in] | _newimg | pointer to the new channel image |
Definition at line 41 of file ScopeMultiImage.cpp.
void scope::ScopeMultiImage::SetAvgCount | ( | const uint32_t & | _avg_count | ) |
Sets the average count of this image.
Definition at line 46 of file ScopeMultiImage.cpp.
void scope::ScopeMultiImage::SetAvgMax | ( | const uint32_t & | _avg_max | ) |
Sets the maximum average count.
Definition at line 50 of file ScopeMultiImage.cpp.
|
inline |
Sets the number of this image.
Definition at line 100 of file ScopeMultiImage.h.
void scope::ScopeMultiImage::SetCompleteFrame | ( | const bool & | _complete | ) |
Sets frame complete.
Definition at line 55 of file ScopeMultiImage.cpp.
void scope::ScopeMultiImage::SetCompleteAvg | ( | const bool & | _complete | ) |
Sets complete average.
Definition at line 68 of file ScopeMultiImage.cpp.
void scope::ScopeMultiImage::SetPercentComplete | ( | const double & | _percent | ) |
Sets percent complete.
Definition at line 61 of file ScopeMultiImage.cpp.
void scope::ScopeMultiImage::FillRandom | ( | ) |
Fills the multi image with random data.
Definition at line 74 of file ScopeMultiImage.cpp.
|
protected |
the area from which the multi image comes
Definition at line 16 of file ScopeMultiImage.h.
|
protected |
number of channels
Definition at line 19 of file ScopeMultiImage.h.
|
protected |
number of lines (y-resolution)
Definition at line 22 of file ScopeMultiImage.h.
|
protected |
the linewidth (x-resolution)
Definition at line 25 of file ScopeMultiImage.h.
|
protected |
the ScopeImages that contain the data for each channel
Definition at line 28 of file ScopeMultiImage.h.
|
protected |
this image is the xth average
Definition at line 31 of file ScopeMultiImage.h.
|
protected |
|
protected |
false if this is a not completely averaged frame, this is then only for display purpose and will not be stored
Definition at line 37 of file ScopeMultiImage.h.
|
protected |
number of this image
Definition at line 40 of file ScopeMultiImage.h.
|
protected |
false if frame not complete, allows for partial display during acquisition
Definition at line 43 of file ScopeMultiImage.h.
|
protected |
how many percent of the frame are already filled
Definition at line 46 of file ScopeMultiImage.h.