44 auto k = std::make_unique<NEWarpAffineKernel<InterpolationPolicy::NEAREST_NEIGHBOR>>();
45 k->configure(input, output, matrix, border_mode, constant_border_value);
46 _kernel = std::move(k);
51 auto k = std::make_unique<NEWarpAffineKernel<InterpolationPolicy::BILINEAR>>();
52 k->configure(input, output, matrix, border_mode, constant_border_value);
53 _kernel = std::move(k);
61 auto b = std::make_unique<NEFillBorderKernel>();
62 b->configure(input, _kernel->border_size(), border_mode, constant_border_value);
63 _border_handler = std::move(
b);
BorderMode
Methods available to handle borders.
InterpolationPolicy
Interpolation method.
#define ARM_COMPUTE_ERROR(msg)
Print the given message then throw an std::runtime_error.
1 channel, 1 U8 per channel
Output values are defined by bilinear interpolation between the pixels.
void configure(ITensor *input, ITensor *output, const std::array< float, 9 > &matrix, InterpolationPolicy policy, BorderMode border_mode, uint8_t constant_border_value=0)
Initialize the function's source, destination, interpolation policy and border_mode.
Output values are defined to match the source pixel whose center is nearest to the sample position...
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
Output values are determined by averaging the source pixels whose areas fall under the area of the de...
#define ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(t, c,...)