Mech-Eye API 2.3.3
API reference documentation for Mech-Eye Industrial 3D Camera
|
Definition of data structure in device capturing image. More...
#include <MechEyeFrame.hpp>
Public Member Functions | |
Frame () | |
~Frame () | |
uint32_t | width () const |
uint32_t | height () const |
bool | empty () const |
const ElementType * | data () const |
ElementType * | data () |
const ElementType & | operator[] (std::size_t n) const |
ElementType & | operator[] (std::size_t n) |
const ElementType & | at (uint32_t row, uint32_t col) const |
ElementType & | at (uint32_t row, uint32_t col) |
void | resize (uint32_t width, uint32_t height) |
void | release () |
Definition of data structure in device capturing image.
Definition at line 100 of file MechEyeFrame.hpp.
|
inline |
Constructor
Definition at line 106 of file MechEyeFrame.hpp.
|
inline |
Destructor
Definition at line 110 of file MechEyeFrame.hpp.
|
inline |
Returns an element reference to the specified row and col index in the Frame.
row | Index along the dimension height. It will throw an exception if the input row is greater than width. |
col | Index along the dimension width. It will throw an exception if the input col is greater than height. |
Definition at line 185 of file MechEyeFrame.hpp.
|
inline |
Returns a const element reference to the specified row and col index in the Frame.
row | Index along the dimension height. It will throw an exception if the input row is greater than width. |
col | Index along the dimension width. It will throw an exception if the input col is greater than height. |
Definition at line 170 of file MechEyeFrame.hpp.
|
inline |
Returns the pointer to the element data.
Definition at line 135 of file MechEyeFrame.hpp.
|
inline |
Returns the pointer to the element data.
Definition at line 130 of file MechEyeFrame.hpp.
|
inline |
Returns true if the Frame has no elements.
Definition at line 125 of file MechEyeFrame.hpp.
|
inline |
Returns the height of the Frame
Definition at line 120 of file MechEyeFrame.hpp.
|
inline |
Returns a element reference to the specified index in the Frame using the operator [].
n | Index along the one dimension. It will throw an exception if the input n is greater than width * height. |
Definition at line 158 of file MechEyeFrame.hpp.
|
inline |
Returns a const element reference to the specified index in the Frame using the operator [].
n | Index along the one dimension. It will throw an exception if the input n is greater than width * height. |
Definition at line 145 of file MechEyeFrame.hpp.
|
inline |
Deallocated the Frame data.
Definition at line 209 of file MechEyeFrame.hpp.
|
inline |
Change the Frame size to a new one. It will destroy the existing data and reallocate memory according to the new size.
Definition at line 196 of file MechEyeFrame.hpp.
|
inline |
Returns the width of the Frame
Definition at line 115 of file MechEyeFrame.hpp.