Nav2 Navigation Stack - humble
humble
ROS 2 Navigation Stack
|
Object to eliminate grouped noise on the image Stores a label tree that is reused. More...
#include <nav2_costmap_2d/include/nav2_costmap_2d/denoise/image_processing.hpp>
Public Member Functions | |
GroupsRemover () | |
Constructs the object and initializes the label tree. | |
template<class IsBg > | |
void | removeGroups (Image< uint8_t > &image, MemoryBuffer &buffer, ConnectivityType group_connectivity_type, size_t minimal_group_size, const IsBg &is_background) const |
Calls removeGroupsPickLabelType with the Way4/Way8 template parameter based on the runtime value of group_connectivity_type. More... | |
Object to eliminate grouped noise on the image Stores a label tree that is reused.
Definition at line 881 of file image_processing.hpp.
|
inline |
Calls removeGroupsPickLabelType with the Way4/Way8 template parameter based on the runtime value of group_connectivity_type.
IsBg | functor with signature bool (uint8_t) |
[in,out] | image | image to be denoised |
buffer | dynamic memory block that will be used to store the temp labeled image | |
group_connectivity_type | pixels connectivity type | |
minimal_group_size | the border value of group size. Groups of this and larger size will be kept | |
is_background | returns true if the passed pixel value is background |
Definition at line 902 of file image_processing.hpp.
References nav2_costmap_2d::Way4.