ReUseX  0.0.1
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
image.hpp
Go to the documentation of this file.
1#pragma once
2#include <opencv2/opencv.hpp>
3
5
11struct Image {
12 const void *bgrptr = nullptr;
13 int width = 0;
14 int height = 0;
15
16 Image() = default;
17
22 Image(const void *bgrptr, int width, int height)
24};
25
29Image cvimg(const cv::Mat &image);
30
31} // namespace ReUseX::vision::common::tensor
Image cvimg(const cv::Mat &image)
Create an Image view that wraps an OpenCV Mat (zero-copy).
Lightweight, non-owning view of a BGR image buffer.
Definition image.hpp:11
int width
Image width in pixels.
Definition image.hpp:13
const void * bgrptr
Pointer to the BGR pixel data (row-major).
Definition image.hpp:12
Image(const void *bgrptr, int width, int height)
Construct from a raw pointer and explicit dimensions.
Definition image.hpp:22
int height
Image height in pixels.
Definition image.hpp:14