Definition of data structure in device capturing image.
More...
#include <MechEyeFrame.hpp>
template<typename ElementType>
class mmind::api::Frame< ElementType >
Definition of data structure in device capturing image.
◆ Frame()
template<typename ElementType >
◆ ~Frame()
template<typename ElementType >
◆ at() [1/2]
template<typename ElementType >
ElementType & at |
( |
uint32_t |
row, |
|
|
uint32_t |
col |
|
) |
| |
|
inline |
Returns an element reference to the specified row and col index in the Frame.
- Parameters
-
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. |
◆ at() [2/2]
template<typename ElementType >
const ElementType & at |
( |
uint32_t |
row, |
|
|
uint32_t |
col |
|
) |
| const |
|
inline |
Returns a const element reference to the specified row and col index in the Frame.
- Parameters
-
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. |
◆ data() [1/2]
template<typename ElementType >
Returns the pointer to the element data.
◆ data() [2/2]
template<typename ElementType >
const ElementType * data |
( |
| ) |
const |
|
inline |
Returns the pointer to the element data.
◆ empty()
template<typename ElementType >
Returns true if the Frame has no elements.
◆ height()
template<typename ElementType >
uint32_t height |
( |
| ) |
const |
|
inline |
Returns the height of the Frame
◆ operator[]() [1/2]
template<typename ElementType >
ElementType & operator[] |
( |
std::size_t |
n | ) |
|
|
inline |
Returns a element reference to the specified index in the Frame using the operator [].
- Parameters
-
n | Index along the one dimension. It will throw an exception if the input n is greater than width * height. |
◆ operator[]() [2/2]
template<typename ElementType >
const ElementType & operator[] |
( |
std::size_t |
n | ) |
const |
|
inline |
Returns a const element reference to the specified index in the Frame using the operator [].
- Parameters
-
n | Index along the one dimension. It will throw an exception if the input n is greater than width * height. |
◆ release()
template<typename ElementType >
Deallocated the Frame data.
◆ resize()
template<typename ElementType >
void resize |
( |
uint32_t |
width, |
|
|
uint32_t |
height |
|
) |
| |
|
inline |
Change the Frame size to a new one. It will destroy the existing data and reallocate memory according to the new size.
- Parameters
-
width | New number of the Frame width. |
height | New number of the Frame height. |
◆ width()
template<typename ElementType >
Returns the width of the Frame
The documentation for this class was generated from the following file: