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

Instance segmentation result backed by an OpenCV mask. More...

#include <object.hpp>

Public Member Functions

void keep_largest_part ()
 Retain only the largest connected component in the mask.
Segmentation align_to_left_top (int left, int top, int width, int height) const
 Return a new Segmentation placed at the given (left, top) offset within a canvas of the specified dimensions.
Segmentationoperator= (const Segmentation &other)

Public Attributes

cv::Mat mask
 Binary or grayscale segmentation mask.

Detailed Description

Instance segmentation result backed by an OpenCV mask.

Definition at line 134 of file object.hpp.

Member Function Documentation

◆ align_to_left_top()

Segmentation ReUseX::vision::common::object::Segmentation::align_to_left_top ( int left,
int top,
int width,
int height ) const

Return a new Segmentation placed at the given (left, top) offset within a canvas of the specified dimensions.

◆ keep_largest_part()

void ReUseX::vision::common::object::Segmentation::keep_largest_part ( )

Retain only the largest connected component in the mask.

◆ operator=()

Segmentation & ReUseX::vision::common::object::Segmentation::operator= ( const Segmentation & other)

Member Data Documentation

◆ mask

cv::Mat ReUseX::vision::common::object::Segmentation::mask

Binary or grayscale segmentation mask.

Definition at line 135 of file object.hpp.


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