Nav2 Navigation Stack - jazzy  jazzy
ROS 2 Navigation Stack
Public Member Functions | List of all members
nav2_costmap_2d::imgproc_impl::GroupsRemover Class Reference

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...
 

Detailed Description

Object to eliminate grouped noise on the image Stores a label tree that is reused.

See also
connectedComponents

Definition at line 885 of file image_processing.hpp.

Member Function Documentation

◆ removeGroups()

template<class IsBg >
void nav2_costmap_2d::imgproc_impl::GroupsRemover::removeGroups ( Image< uint8_t > &  image,
MemoryBuffer buffer,
ConnectivityType  group_connectivity_type,
size_t  minimal_group_size,
const IsBg &  is_background 
) const
inline

Calls removeGroupsPickLabelType with the Way4/Way8 template parameter based on the runtime value of group_connectivity_type.

Template Parameters
IsBgfunctor with signature bool (uint8_t)
Parameters
[in,out]imageimage to be denoised
bufferdynamic memory block that will be used to store the temp labeled image
group_connectivity_typepixels connectivity type
minimal_group_sizethe border value of group size. Groups of this and larger size will be kept
is_backgroundreturns true if the passed pixel value is background

Definition at line 906 of file image_processing.hpp.

References nav2_costmap_2d::Way4.


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