Nav2 Navigation Stack - jazzy  jazzy
ROS 2 Navigation Stack
Static Public Member Functions | List of all members
nav2_costmap_2d::imgproc_impl::ProcessPixel< ConnectivityType::Way8 > Struct Reference

Define the label of a pixel in an 8-linked image. More...

#include <nav2_costmap_2d/include/nav2_costmap_2d/denoise/image_processing.hpp>

Static Public Member Functions

template<class ImageWindow , class LabelsWindow , class Label , class IsBg >
static void pass (ImageWindow &image, LabelsWindow &label, EquivalenceLabelTrees< Label > &eq_trees, IsBg &&is_bg)
 Set the label of the current pixel image.e() based on labels in its neighborhood. More...
 

Detailed Description

Define the label of a pixel in an 8-linked image.

Definition at line 553 of file image_processing.hpp.

Member Function Documentation

◆ pass()

template<class ImageWindow , class LabelsWindow , class Label , class IsBg >
static void nav2_costmap_2d::imgproc_impl::ProcessPixel< ConnectivityType::Way8 >::pass ( ImageWindow &  image,
LabelsWindow &  label,
EquivalenceLabelTrees< Label > &  eq_trees,
IsBg &&  is_bg 
)
inlinestatic

Set the label of the current pixel image.e() based on labels in its neighborhood.

Template Parameters
ImageWindowWindow parameterized by class DoNothing or ReplaceToZero
LabelsWindowWindow parameterized by class DoNothing or ReplaceToZero
Labelinteger type of label
Parameters
imageinput image window. Image data will not be changed. De facto, image is a const ref
labeloutput label window
eq_treesunion-find structure
Exceptions
LabelOverflowif all possible labels already used

Definition at line 566 of file image_processing.hpp.

References nav2_costmap_2d::imgproc_impl::EquivalenceLabelTrees< Label >::makeLabel(), and nav2_costmap_2d::imgproc_impl::EquivalenceLabelTrees< Label >::unionTrees().

Here is the call graph for this function:

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