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

A raw binary segmentation map stored as pinned host memory. More...

#include <object.hpp>

Public Member Functions

 SegmentMap (int width, int height)
 Allocate a SegmentMap of the given dimensions using pinned CUDA host memory.
virtual ~SegmentMap ()
 SegmentMap (const SegmentMap &)=delete
 Copy is disabled — use move semantics instead.
SegmentMapoperator= (const SegmentMap &)=delete
 SegmentMap (SegmentMap &&other) noexcept
 Move constructor — transfers ownership and resets source.
SegmentMapoperator= (SegmentMap &&other) noexcept
 Move assignment — transfers ownership and resets source.

Public Attributes

int width = 0
 Width of the mask in pixels (must be % 8 == 0).
int height = 0
 Height of the mask in pixels.
unsigned char * data = nullptr
 Raw mask data (width * height bytes).

Detailed Description

A raw binary segmentation map stored as pinned host memory.

Width must be a multiple of 8. Move-only (no copy).

Definition at line 108 of file object.hpp.

Constructor & Destructor Documentation

◆ SegmentMap() [1/3]

ReUseX::vision::common::object::SegmentMap::SegmentMap ( int width,
int height )

Allocate a SegmentMap of the given dimensions using pinned CUDA host memory.

References height, and width.

Referenced by operator=(), operator=(), SegmentMap(), and SegmentMap().

◆ ~SegmentMap()

virtual ReUseX::vision::common::object::SegmentMap::~SegmentMap ( )
virtual

◆ SegmentMap() [2/3]

ReUseX::vision::common::object::SegmentMap::SegmentMap ( const SegmentMap & )
delete

Copy is disabled — use move semantics instead.

References SegmentMap().

◆ SegmentMap() [3/3]

ReUseX::vision::common::object::SegmentMap::SegmentMap ( SegmentMap && other)
inlinenoexcept

Move constructor — transfers ownership and resets source.

Definition at line 124 of file object.hpp.

References SegmentMap().

Member Function Documentation

◆ operator=() [1/2]

SegmentMap & ReUseX::vision::common::object::SegmentMap::operator= ( const SegmentMap & )
delete

References SegmentMap().

◆ operator=() [2/2]

SegmentMap & ReUseX::vision::common::object::SegmentMap::operator= ( SegmentMap && other)
noexcept

Move assignment — transfers ownership and resets source.

References SegmentMap().

Member Data Documentation

◆ data

unsigned char* ReUseX::vision::common::object::SegmentMap::data = nullptr

Raw mask data (width * height bytes).

Definition at line 111 of file object.hpp.

◆ height

int ReUseX::vision::common::object::SegmentMap::height = 0

Height of the mask in pixels.

Definition at line 110 of file object.hpp.

Referenced by SegmentMap().

◆ width

int ReUseX::vision::common::object::SegmentMap::width = 0

Width of the mask in pixels (must be % 8 == 0).

Definition at line 109 of file object.hpp.

Referenced by SegmentMap().


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