OpenSRX 0.1.0
C++ library for interfacing with Keyence SR series barcode readers
Loading...
Searching...
No Matches
Image.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <fstream>
5#include <stdexcept>
6#include <string>
7#include <vector>
8
9namespace OpenSRX {
10
18struct Image {
19 int width = 0;
20 int height = 0;
21 int channels = 0;
22 std::vector<uint8_t> data;
23};
24
34Image decodeBMP(const std::string& path);
35
36} // namespace OpenSRX
Definition AsioInterface.hpp:5
Image decodeBMP(const std::string &path)
Decode a BMP file into an Image.
Raw decoded image data.
Definition Image.hpp:18
int channels
bytes per pixel (1, 3, or 4)
Definition Image.hpp:21
int width
Definition Image.hpp:19
int height
Definition Image.hpp:20
std::vector< uint8_t > data
raw pixel buffer (width * height * channels)
Definition Image.hpp:22