MoveIt Pro API
Core Behaviors for MoveIt Pro
Loading...
Searching...
No Matches
moveit_studio::behaviors::GetMasks2DFromPointQueryInterface Class Reference

#include <sam2_segmentation.hpp>

Public Member Functions

 GetMasks2DFromPointQueryInterface ()
 
virtual ~GetMasks2DFromPointQueryInterface ()=default
 
virtual void init (const std::filesystem::path &encoder_onnx_file, const std::filesystem::path &decoder_onnx_file)
 
virtual const moveit_pro_ml::ONNXImage & segment_image (const moveit_pro_ml::ONNXImage &image, const std::vector< moveit_pro_ml::PointPrompt > &point_prompts, const std::optional< moveit_pro_ml::ONNXImage > &mask_prompt=std::nullopt) const
 

Public Attributes

bool is_initialized = false
 

Constructor & Destructor Documentation

◆ GetMasks2DFromPointQueryInterface()

moveit_studio::behaviors::GetMasks2DFromPointQueryInterface::GetMasks2DFromPointQueryInterface ( )
inline

◆ ~GetMasks2DFromPointQueryInterface()

virtual moveit_studio::behaviors::GetMasks2DFromPointQueryInterface::~GetMasks2DFromPointQueryInterface ( )
virtualdefault

Member Function Documentation

◆ init()

void moveit_studio::behaviors::GetMasks2DFromPointQueryInterface::init ( const std::filesystem::path &  encoder_onnx_file,
const std::filesystem::path &  decoder_onnx_file 
)
virtual

◆ segment_image()

const moveit_pro_ml::ONNXImage & moveit_studio::behaviors::GetMasks2DFromPointQueryInterface::segment_image ( const moveit_pro_ml::ONNXImage &  image,
const std::vector< moveit_pro_ml::PointPrompt > &  point_prompts,
const std::optional< moveit_pro_ml::ONNXImage > &  mask_prompt = std::nullopt 
) const
virtual

Member Data Documentation

◆ is_initialized

bool moveit_studio::behaviors::GetMasks2DFromPointQueryInterface::is_initialized = false

The documentation for this class was generated from the following files: