Go to the documentation of this file.
3 #include <opencv2/core.hpp>
6 #include <ros/publisher.h>
Result of the segmentation pipeline containing masks, bounding boxes, and YOLO classification info fo...
Latency measurements for the segmentation pipeline subsystems. All times are in milliseconds.
std::vector< std::string > labels
std::unique_ptr< Impl > pimpl_
void initialize(tue::Configuration &config)
Initialize the YOLO and SAM models from configuration.
std::vector< cv::Mat > masks
std::vector< float > confidences
std::vector< cv::Rect > boxes
SegmentationLatency latency
Segmentation pipeline class that maintains YOLO and SAM models state. This prevents initializing heav...
std::atomic< bool > is_initialized_
void overlayMasksOnImage_(cv::Mat &rgb, const std::vector< cv::Mat > &masks)
Overlay segmentation masks on the RGB image for visualization purposes.
SegmentationResult process(const cv::Mat &img, const cv::Mat &depth_image=cv::Mat(), const std::string &ignore_label="", bool verbose=false)
Process the input image and generate segmentation masks.
tue::config::ReaderWriter config