From 6203153b25fda2c4b8d94fe71337d1145a36c132 Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Tue, 4 Jul 2017 11:21:28 +0100 Subject: COMPMID-424 Implemented reference implementation and validation tests (NEON and CL) for Warp Perspective Changed the behaviour in NEWarpKernel for border mode replicate and constant to stick with the VX specs. When the new coords are out of the valid region, the output will be computed using the values from the border. In the validation tests the validate will be called with tolerance_value 1 and tolerance_number 0.2%, due to some float arithmetic related mismatches. Change-Id: Id4f9d0ef87178f8f8fd38ee17fee0e6f4beb85cd Reviewed-on: http://mpd-gerrit.cambridge.arm.com/80283 Tested-by: Kaizen Reviewed-by: Moritz Pflanzer Reviewed-by: Steven Niu --- arm_compute/core/Helpers.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arm_compute/core/Helpers.inl') diff --git a/arm_compute/core/Helpers.inl b/arm_compute/core/Helpers.inl index f885810078..d342a60987 100644 --- a/arm_compute/core/Helpers.inl +++ b/arm_compute/core/Helpers.inl @@ -53,8 +53,8 @@ inline uint8_t pixel_bilinear_c1u8(const uint8_t *first_pixel_ptr, size_t stride { ARM_COMPUTE_ERROR_ON(first_pixel_ptr == nullptr); - const int32_t xi = x; - const int32_t yi = y; + const int32_t xi = std::floor(x); + const int32_t yi = std::floor(y); const float dx = x - xi; const float dy = y - yi; -- cgit v1.2.1