![]() |
EduArt Sensor Ring Library 3.0.0
|
Template for images with three channels and variable type. More...
#include <Image.hpp>
Public Member Functions | |
| void | copyTo (T *buffer, int size) |
| Copy image data to a pre-allocated buffer (flattened: R,G,B,R,G,B,...). | |
Public Attributes | |
| std::array< std::array< T, 3 >, RESOLUTION > | data = {} |
| Internal data structure for the image. | |
Template for images with three channels and variable type.
| void eduart::measurement::GenericRGBImage< T, RESOLUTION >::copyTo | ( | T * | buffer, |
| int | size ) |
Copy image data to a pre-allocated buffer (flattened: R,G,B,R,G,B,...).
| [out] | buffer | Pointer to the buffer. Make sure it has sufficient size. |
| [in] | size | Actual size of the buffer (number of elements). If smaller than RESOLUTION*3, only a subset of pixels is copied. |