Apply morphological dilation to a vector of 2D masks. More...
Declaration
class moveit_pro::behaviors::DilateMask2D { ... }
#include <dilate_mask2d.hpp>
Base class
Public Constructors Index
| DilateMask2D (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
Apply morphological dilation to a vector of 2D masks.
This behavior applies OpenCV's morphological dilation to each Mask2D in the input vector using a square structuring element. Each output pixel is set to the maximum value of all pixels under the kernel in the input, so any background pixel that touches a white pixel within the kernel radius becomes white. This expands white (non-zero) regions, which is useful for filling small holes, connecting nearby regions, and making mask boundaries more inclusive.
| Data Port Name | Port Type | Object Type |
|---|
| masks | Input | std::vector<moveit_studio_vision_msgs::msg::Mask2D> |
| kernel_size | Input | int |
| iterations | Input | int |
| dilated_masks | Output | std::vector<moveit_studio_vision_msgs::msg::Mask2D> |
- See Also
https://docs.opencv.org/3.4/db/df6/tutorial_erosion_dilatation.html
Definition at line 36 of file dilate_mask2d.hpp.
Public Constructors
DilateMask2D()
| moveit_pro::behaviors::DilateMask2D::DilateMask2D (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::DilateMask2D::tick () |
|
Public Static Functions
metadata()
| BT::KeyValueVector moveit_pro::behaviors::DilateMask2D::metadata () |
|
static
|
providedPorts()
| BT::PortsList moveit_pro::behaviors::DilateMask2D::providedPorts () |
|
static
|
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.