24 #ifndef __ARM_COMPUTE_NENONLINEARFILTERKERNEL_H__ 25 #define __ARM_COMPUTE_NENONLINEARFILTERKERNEL_H__ 74 void fill_mask(uint8_t *mask,
int cols,
int rows,
MatrixPattern pattern);
79 template <
int mask_w,
int mask_h>
80 void median_filter_box(
const Window &win);
85 template <
int mask_w,
int mask_h>
86 void min_filter_box(
const Window &win);
91 template <
int mask_w,
int mask_h>
92 void max_filter_box(
const Window &win);
97 template <
int mask_w,
int mask_h>
98 void median_filter_cross(
const Window &win);
103 template <
int mask_w,
int mask_h>
104 void min_filter_cross(
const Window &win);
109 template <
int mask_w,
int mask_h>
110 void max_filter_cross(
const Window &win);
115 template <
int mask_w,
int mask_h>
116 void median_filter_disk(
const Window &win);
121 template <
int mask_w,
int mask_h>
122 void min_filter_disk(
const Window &win);
127 template <
int mask_w,
int mask_h>
128 void max_filter_disk(
const Window &win);
133 template <
int mask_w,
int mask_h>
134 void non_linear_filter_generic(
const Window &win);
137 unsigned int _border_width;
140 const uint8_t *_mask;
143 unsigned int _func_idx;
BorderSize border_size() const override
The size of the border for that kernel.
Container for 2D border size.
Common interface for all kernels implemented in C++.
Interface for NEON tensor.
void run(const Window &window) override
Execute the kernel on the passed window.
NENonLinearFilterKernel()
Default constructor.
void configure(const ITensor *input, ITensor *output, NonLinearFilterFunction function, unsigned int mask_size, MatrixPattern pattern, const uint8_t *mask, bool border_undefined)
Set the source, destination and border mode of the kernel.
Interface for the kernel to apply a non-linear filter.
NENonLinearFilterKernel & operator=(NENonLinearFilterKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
const Window & window() const
The maximum window the kernel can be executed on.
MatrixPattern
Available matrix patterns.
Describe a multidimensional execution window.
NonLinearFilterFunction
Available non linear functions.