36 : _input(nullptr), _output(nullptr), _threshold(0)
54 INEKernel::configure(win);
72 const uint8_t value = *input.
ptr();
74 if(value >= _threshold)
Window calculate_max_window(const ValidRegion &valid_region, const Steps &steps, bool skip_border, BorderSize border_size)
const Window & window() const
The maximum window the kernel can be executed on.
float scale
Scale initialized to 0 by the corner detector.
#define ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D(t)
float orientation
Orientation initialized to 0 by the corner detector.
1 channel, 1 U8 per channel
int32_t tracking_status
Status initialized to 1 by the corner detector, set to 0 when the point is lost.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
float strength
Strength of the point.
float error
Tracking error initialized to 0 by the corner detector.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
Class to describe a number of elements in each dimension.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
constexpr uint8_t * ptr() const
Return a pointer to the current pixel.
void configure(const IImage *input, uint8_t threshold, IKeyPointArray *output)
Initialise the kernel.
#define ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(k)
#define ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(t, c,...)
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Information about executing thread and CPU.
bool is_parallelisable() const override
Indicates whether or not the kernel is parallelisable.
unsigned int num_elems_processed_per_iteration
void execute_window_loop(const Window &w, L &&lambda_function, Ts &&... iterators)
Iterate through the passed window, automatically adjusting the iterators and calling the lambda_funct...
bool push_back(const T &val)
Append the passed argument to the end of the array if there is room.
Iterator updated by execute_window_loop for each window element.
SimpleTensor< T > threshold(const SimpleTensor< T > &src, T threshold, T false_value, T true_value, ThresholdType type, T upper)
Describe a multidimensional execution window.
NEFillArrayKernel()
Default contructor.
#define ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(f, s)