24 #ifndef __ARM_COMPUTE_NENONLINEARFILTERKERNEL_H__ 25 #define __ARM_COMPUTE_NENONLINEARFILTERKERNEL_H__ 40 const char *
name()
const override 42 return "NENonLinearFilterKernel";
78 void fill_mask(uint8_t *mask,
int cols,
int rows,
MatrixPattern pattern);
83 template <
int mask_w,
int mask_h>
84 void median_filter_box(
const Window &win);
89 template <
int mask_w,
int mask_h>
90 void min_filter_box(
const Window &win);
95 template <
int mask_w,
int mask_h>
96 void max_filter_box(
const Window &win);
101 template <
int mask_w,
int mask_h>
102 void median_filter_cross(
const Window &win);
107 template <
int mask_w,
int mask_h>
108 void min_filter_cross(
const Window &win);
113 template <
int mask_w,
int mask_h>
114 void max_filter_cross(
const Window &win);
119 template <
int mask_w,
int mask_h>
120 void median_filter_disk(
const Window &win);
125 template <
int mask_w,
int mask_h>
126 void min_filter_disk(
const Window &win);
131 template <
int mask_w,
int mask_h>
132 void max_filter_disk(
const Window &win);
137 template <
int mask_w,
int mask_h>
138 void non_linear_filter_generic(
const Window &win);
141 unsigned int _border_width;
144 const uint8_t *_mask;
147 unsigned int _func_idx;
BorderSize border_size() const override
The size of the border for that kernel.
Container for 2D border size.
const char * name() const override
Name of the kernel.
Common interface for all kernels implemented in C++.
Interface for NEON tensor.
src info() -> set_format(Format::S16)
This file contains all available output stages for GEMMLowp on OpenCL.
void run(const Window &window, const ThreadInfo &info) 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.
Information about executing thread and CPU.
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.