RobotsIO
Loading...
Searching...
No Matches
Public Member Functions | List of all members
RobotsIO::Camera::SegmentationCamera Class Reference

Public Member Functions

 SegmentationCamera (const RobotsIO::Camera::CameraParameters &camera_parameters, const std::string &mesh_path, const double &threshold=0.01)
 
void add_object ()
 
std::pair< bool, cv::Mat > mask (const Eigen::MatrixXf &scene_depth, const Eigen::Transform< double, 3, Eigen::Affine > object_transform)
 
std::pair< bool, cv::Mat > mask (std::shared_ptr< RobotsIO::Camera::Camera > camera, std::shared_ptr< RobotsIO::Utils::Transform > object_transform)
 

Detailed Description

Definition at line 28 of file SegmentationCamera.h.

Constructor & Destructor Documentation

◆ SegmentationCamera()

SegmentationCamera::SegmentationCamera ( const RobotsIO::Camera::CameraParameters camera_parameters,
const std::string &  mesh_path,
const double &  threshold = 0.01 
)

Definition at line 17 of file SegmentationCamera.cpp.

◆ ~SegmentationCamera()

SegmentationCamera::~SegmentationCamera ( )

Definition at line 32 of file SegmentationCamera.cpp.

Member Function Documentation

◆ mask() [1/2]

std::pair< bool, cv::Mat > RobotsIO::Camera::SegmentationCamera::mask ( const Eigen::MatrixXf &  scene_depth,
const Eigen::Transform< double, 3, Eigen::Affine >  object_transform 
)

Segmentation mask given a depth image and an object Eigen::Transform<double, 3, Affine>

◆ mask() [2/2]

std::pair< bool, cv::Mat > RobotsIO::Camera::SegmentationCamera::mask ( std::shared_ptr< RobotsIO::Camera::Camera camera,
std::shared_ptr< RobotsIO::Utils::Transform object_transform 
)

Segmentation mask given a RobotsIO::Camera::Camera and a RobotsIO::Utils::Transform