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
4
namespace
ReUseX::vision::common::tensor
{
5
11
struct
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
)
23
:
bgrptr
(
bgrptr
),
width
(
width
),
height
(
height
) {}
24
};
25
29
Image
cvimg
(
const
cv::Mat &image);
30
31
}
// namespace ReUseX::vision::common::tensor
ReUseX::vision::common::tensor
Definition
image.hpp:4
ReUseX::vision::common::tensor::cvimg
Image cvimg(const cv::Mat &image)
Create an Image view that wraps an OpenCV Mat (zero-copy).
ReUseX::vision::common::tensor::Image
Lightweight, non-owning view of a BGR image buffer.
Definition
image.hpp:11
ReUseX::vision::common::tensor::Image::width
int width
Image width in pixels.
Definition
image.hpp:13
ReUseX::vision::common::tensor::Image::bgrptr
const void * bgrptr
Pointer to the BGR pixel data (row-major).
Definition
image.hpp:12
ReUseX::vision::common::tensor::Image::Image
Image(const void *bgrptr, int width, int height)
Construct from a raw pointer and explicit dimensions.
Definition
image.hpp:22
ReUseX::vision::common::tensor::Image::height
int height
Image height in pixels.
Definition
image.hpp:14
ReUseX::vision::common::tensor::Image::Image
Image()=default
libs
reusex
include
ReUseX
vision
common
image.hpp
Generated by
1.16.1