ReUseX  0.0.1
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
ReUseX::vision::common::tensor::Image Struct Reference

Lightweight, non-owning view of a BGR image buffer. More...

#include <image.hpp>

Public Member Functions

 Image ()=default
 Image (const void *bgrptr, int width, int height)
 Construct from a raw pointer and explicit dimensions.

Public Attributes

const void * bgrptr = nullptr
 Pointer to the BGR pixel data (row-major).
int width = 0
 Image width in pixels.
int height = 0
 Image height in pixels.

Detailed Description

Lightweight, non-owning view of a BGR image buffer.

Image wraps a raw pixel pointer together with its dimensions, providing a uniform interface for passing image data into GPU preprocessing pipelines without incurring a copy.

Definition at line 11 of file image.hpp.

Constructor & Destructor Documentation

◆ Image() [1/2]

ReUseX::vision::common::tensor::Image::Image ( )
default

◆ Image() [2/2]

ReUseX::vision::common::tensor::Image::Image ( const void * bgrptr,
int width,
int height )
inline

Construct from a raw pointer and explicit dimensions.

Parameters
bgrptrPointer to the first byte of BGR pixel data.
widthImage width in pixels.
heightImage height in pixels.

Definition at line 22 of file image.hpp.

References bgrptr, height, and width.

Member Data Documentation

◆ bgrptr

const void* ReUseX::vision::common::tensor::Image::bgrptr = nullptr

Pointer to the BGR pixel data (row-major).

Definition at line 12 of file image.hpp.

Referenced by Image().

◆ height

int ReUseX::vision::common::tensor::Image::height = 0

Image height in pixels.

Definition at line 14 of file image.hpp.

Referenced by Image().

◆ width

int ReUseX::vision::common::tensor::Image::width = 0

Image width in pixels.

Definition at line 13 of file image.hpp.

Referenced by Image().


The documentation for this struct was generated from the following file:
  • libs/reusex/include/ReUseX/vision/common/image.hpp