EduArt Sensor Ring Library 3.0.0
Loading...
Searching...
No Matches
eduart::measurement::GenericRGBImage< T, RESOLUTION > Class Template Reference

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.

Detailed Description

template<typename T, std::size_t RESOLUTION>
class eduart::measurement::GenericRGBImage< T, RESOLUTION >

Template for images with three channels and variable type.

Member Function Documentation

◆ copyTo()

template<typename T, std::size_t RESOLUTION>
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,...).

Parameters
[out]bufferPointer to the buffer. Make sure it has sufficient size.
[in]sizeActual size of the buffer (number of elements). If smaller than RESOLUTION*3, only a subset of pixels is copied.

The documentation for this class was generated from the following file: