ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
segment_image.hpp File Reference
#include "reusex/vision/IModel.hpp"
#include "reusex/vision/sam3_prompt.hpp"
#include <opencv2/core.hpp>
#include <cstddef>
#include <vector>
Include dependency graph for segment_image.hpp:

Go to the source code of this file.

Classes

struct  reusex::vision::SegmentImageInfo
 What segment_image() can report beyond the label map. More...

Namespaces

namespace  reusex
namespace  reusex::vision

Functions

std::size_t reusex::vision::clip_labels_to_prompt_boxes (cv::Mat &labels, const std::vector< Sam3Prompt > &prompts)
 Segment a single BGR image with a SAM3 model.
cv::Mat reusex::vision::segment_image (IModel &model, const cv::Mat &image_bgr, const std::vector< Sam3Prompt > &prompts={}, float confidence=0.5f, SegmentImageInfo *info=nullptr)
 Segment a single BGR image with a SAM3 model (see the parameters above).