FilterMasks2DByArea Class
Filter 2D masks based on mask area only. More...
Declaration
class moveit_pro::behaviors::FilterMasks2DByArea { ... }
#include <filter_masks2d_by_area.hpp>
Base class
Public Constructors Index
| FilterMasks2DByArea (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > &shared_resources) |
|
|
|
Public Member Functions Index
| BT::NodeStatus | tick () override |
|
|
|
Public Static Functions Index
Description
Filter 2D masks based on mask area only.
This behavior filters a vector of Mask2D messages by computing the area of each mask and checking if it falls within the specified range. Only masks that satisfy the area constraint are included in the output.
For each Mask2D in the input vector:
- Compute area by counting all non-zero pixels
- Check if min_area <= area <= max_area
- If condition passes, add to output vector
| Data Port Name | Port Type | Object Type |
|---|
| masks | Input | std::vector<moveit_studio_vision_msgs::msg::Mask2D> |
| min_area | Input | int |
| max_area | Input | int |
| filtered_masks | Output | std::vector<moveit_studio_vision_msgs::msg::Mask2D> |
Definition at line 36 of file filter_masks2d_by_area.hpp.
Public Constructors
FilterMasks2DByArea()
| moveit_pro::behaviors::FilterMasks2DByArea::FilterMasks2DByArea (const std::string & name, const BT::NodeConfiguration & config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > & shared_resources) |
|
Public Member Functions
tick()
| BT::NodeStatus moveit_pro::behaviors::FilterMasks2DByArea::tick () |
|
Public Static Functions
metadata()
| BT::KeyValueVector moveit_pro::behaviors::FilterMasks2DByArea::metadata () |
|
static
|
providedPorts()
| BT::PortsList moveit_pro::behaviors::FilterMasks2DByArea::providedPorts () |
|
static
|
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.