|
CppNCorr
C++ ncorr Digital Image Correlation engine
|
Thin, non-owning view over a raw image in memory. More...
#include <session.h>
Public Member Functions | |
| ImageBuffer ()=default | |
| Default-construct an empty (invalid) buffer. | |
| ImageBuffer (const std::uint8_t *data_, int width_, int height_, int channels_=1) | |
| Construct an image buffer view. | |
| bool | valid () const |
| std::size_t | size_bytes () const |
Public Attributes | |
| const std::uint8_t * | data = nullptr |
| Pointer to the first byte of the (row-major, interleaved) pixel data. | |
| int | width = 0 |
| Image width in pixels. | |
| int | height = 0 |
| Image height in pixels. | |
| int | channels = 1 |
| Number of interleaved channels per pixel (1 = grayscale, 3 = BGR, ...). | |
Thin, non-owning view over a raw image in memory.
Wraps a contiguous pixel buffer plus its geometry. The buffer is interpreted as row-major, with channels interleaved per pixel (e.g. BGR for 3-channel data, matching OpenCV's default layout). 8-bit unsigned samples are assumed.
The struct does NOT own data; the caller must keep the underlying storage alive for the duration of any call that receives the ImageBuffer.
|
default |
Default-construct an empty (invalid) buffer.
|
inline |
|
inline |
|
inline |
| int ncorr::ImageBuffer::channels = 1 |
| const std::uint8_t* ncorr::ImageBuffer::data = nullptr |