ed_sensor_integration
sam_seg_module.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <opencv2/core.hpp>
4 
5 #include <geolib/datatypes.h>
6 #include <ros/publisher.h>
8 
10 
11 #include <string>
12 #include <utility>
13 #include <vector>
14 
20 {
23  std::vector<std::string> labels; // YOLO class name per detection
24  std::vector<float> confidences; // YOLO confidence per detection
25 };
26 
35 
42 void overlayMasksOnImage_(cv::Mat& rgb, const std::vector<cv::Mat>& masks);
SegmentationResult
Result of the segmentation pipeline containing masks, bounding boxes, and YOLO classification info fo...
Definition: sam_seg_module.h:19
datatypes.h
SegmentationResult::labels
std::vector< std::string > labels
Definition: sam_seg_module.h:23
utility
vector
tue::config::ReaderWriter
SegmentationResult::masks
std::vector< cv::Mat > masks
Definition: sam_seg_module.h:21
SegmentationResult::confidences
std::vector< float > confidences
Definition: sam_seg_module.h:24
SegmentationResult::boxes
std::vector< cv::Rect > boxes
Definition: sam_seg_module.h:22
configuration.h
entity_update.h
overlayMasksOnImage_
void overlayMasksOnImage_(cv::Mat &rgb, const std::vector< cv::Mat > &masks)
Overlay segmentation masks on the RGB image for visualization purposes.
Definition: sam_seg_module.cpp:69
SegmentationPipeline
SegmentationResult SegmentationPipeline(const cv::Mat &img, tue::Configuration &config)
Segmentation pipeline that processes the input image and generates segmentation masks.
Definition: sam_seg_module.cpp:11
string