|
ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
|
#include <Data.hpp>


Public Types | |
| using | Vec = std::array<int64_t, 32> |
| using | Prompt = std::pair<std::shared_ptr<Vec>, std::shared_ptr<Vec>> |
Static Public Member Functions | |
| static const std::vector< std::string > & | default_prompt_text_list () |
| Returns the plain text of the built-in default prompt list so callers can merge it with extra prompts (e.g. | |
Public Attributes | |
| cv::Mat | image |
| std::vector< Sam3PromptUnit > | prompts |
| float | confidence_threshold = 0.5f |
| bool | label_by_prompt_index = false |
| Input: write each detection's prompt position (0..N-1 in prompts) as its label value instead of the model's per-text cache id. | |
| bool | select_box_instances = false |
| Input: for a prompt with boxes or points, keep only the detections they select (vision::sam3_detection_selected; a point keeps the one object under it). | |
| bool | geometry_prompts_used = false |
| Output (on forward() results): true when the loaded engines take geometry, i.e. | |
Additional Inherited Members | |
| Public Member Functions inherited from reusex::vision::IData | |
| virtual | ~IData ()=default |
| using reusex::vision::tensor_rt::TensorRTData::Prompt = std::pair<std::shared_ptr<Vec>, std::shared_ptr<Vec>> |
| using reusex::vision::tensor_rt::TensorRTData::Vec = std::array<int64_t, 32> |
|
inlinestatic |
| float reusex::vision::tensor_rt::TensorRTData::confidence_threshold = 0.5f |
| bool reusex::vision::tensor_rt::TensorRTData::geometry_prompts_used = false |
| bool reusex::vision::tensor_rt::TensorRTData::label_by_prompt_index = false |
Input: write each detection's prompt position (0..N-1 in prompts) as its label value instead of the model's per-text cache id.
Set by the single-image callers (segment_image, segment_panorama), whose callers map label k to prompt k. Left false by the annotate dataset, whose class map relies on the cache-id numbering. See sam3_label_value().
| std::vector<Sam3PromptUnit> reusex::vision::tensor_rt::TensorRTData::prompts |
| bool reusex::vision::tensor_rt::TensorRTData::select_box_instances = false |
Input: for a prompt with boxes or points, keep only the detections they select (vision::sam3_detection_selected; a point keeps the one object under it).
SAM3 treats a box as an exemplar and returns every similar object in the image; the single-image selection callers (segment_image) want the object the geometry points at. Points are only fed to the model when this is set. Left false by the annotate dataset.