OpenSRX 0.1.0
C++ library for interfacing with Keyence SR series barcode readers
Loading...
Searching...
No Matches
OpenSRX::Image Struct Reference

Raw decoded image data. More...

#include <Image.hpp>

Public Attributes

int width = 0
 
int height = 0
 
int channels = 0
 bytes per pixel (1, 3, or 4)
 
std::vector< uint8_t > data
 raw pixel buffer (width * height * channels)
 

Detailed Description

Raw decoded image data.

Pixels are stored in row-major order, bottom-to-top (BMP native order is flipped so that row 0 is the top of the image). Each pixel is channels bytes wide (1 = grayscale, 3 = BGR, 4 = BGRA).

Member Data Documentation

◆ channels

int OpenSRX::Image::channels = 0

bytes per pixel (1, 3, or 4)

◆ data

std::vector<uint8_t> OpenSRX::Image::data

raw pixel buffer (width * height * channels)

◆ height

int OpenSRX::Image::height = 0

◆ width

int OpenSRX::Image::width = 0

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