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);