From 09d0d518a87b6a7a1a19562d648921e16f7765a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mayoral=20Vilches?= Date: Mon, 30 Aug 2021 10:28:57 +0200 Subject: [PATCH] Adapt resize testbench to OpenCV's modern APIs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: VĂ­ctor Mayoral Vilches --- vision/L1/examples/resize/xf_resize_tb.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vision/L1/examples/resize/xf_resize_tb.cpp b/vision/L1/examples/resize/xf_resize_tb.cpp index a2e8e1bb0b..cf9b8a879f 100644 --- a/vision/L1/examples/resize/xf_resize_tb.cpp +++ b/vision/L1/examples/resize/xf_resize_tb.cpp @@ -59,17 +59,17 @@ int main(int argc, char** argv) { out_width = NEWWIDTH; /*OpenCV resize function*/ - #if INTERPOLATION == 0 - cv::resize(img, result_ocv, cv::Size(out_width, out_height), 0, 0, CV_INTER_NN); + cv::resize(img, result_ocv, cv::Size(out_width, out_height), 0, 0, cv::INTER_LINEAR); #endif #if INTERPOLATION == 1 - cv::resize(img, result_ocv, cv::Size(out_width, out_height), 0, 0, CV_INTER_LINEAR); + cv::resize(img, result_ocv, cv::Size(out_width, out_height), 0, 0, cv::INTER_LINEAR); #endif #if INTERPOLATION == 2 - cv::resize(img, result_ocv, cv::Size(out_width, out_height), 0, 0, CV_INTER_AREA); + cv::resize(img, result_ocv, cv::Size(out_width, out_height), 0, 0, cv::INTER_LINEAR); #endif + /* Call the top function */ resize_accel((ap_uint*)img.data, (ap_uint*)out_img.data, in_height, in_width, out_height, out_width);