Nav2 Navigation Stack - kilted  kilted
ROS 2 Navigation Stack
Public Member Functions | List of all members
nav2_costmap_2d::imgproc_impl::Window< T, Border > Class Template Reference

Forward scan mask sliding window Provides an interface for access to neighborhood of the current pixel (includes three neighbors of the top row, the pixel to the left and the current one). In the illustration below, the current pixel is e. |a|b|c| |d|e| | | | | |. More...

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

Public Member Functions

 Window (T *up_row, T *down_row, Border< T > border={})
 
T & a ()
 
T & b ()
 
T & c ()
 
T & d ()
 
T & e ()
 
const T * anchor () const
 
void next ()
 Shifts the window to the right.
 

Detailed Description

template<class T, template< class > class Border>
class nav2_costmap_2d::imgproc_impl::Window< T, Border >

Forward scan mask sliding window Provides an interface for access to neighborhood of the current pixel (includes three neighbors of the top row, the pixel to the left and the current one). In the illustration below, the current pixel is e. |a|b|c| |d|e| | | | | |.

Template Parameters
Timage pixel type
Borderoptional check of access to pixels outside the image boundary (DoNothing or ReplaceToZero)

Definition at line 298 of file image_processing.hpp.

Constructor & Destructor Documentation

◆ Window()

template<class T , template< class > class Border>
nav2_costmap_2d::imgproc_impl::Window< T, Border >::Window ( T *  up_row,
T *  down_row,
Border< T >  border = {} 
)
inline

Construct mask window

Parameters
up_rowpointer to the pixel above the current one (a)
down_rowpointer to the current pixel (e)
borderboundary case object

Definition at line 307 of file image_processing.hpp.


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