From 098fc1a62e1de91c7f454122291ee78b693d8c5b Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Mon, 26 Mar 2012 09:12:27 +0000 Subject: [PATCH] fixed nearest-neighbor remap with constant border, ticket #1681 (thanks to Vlad for the patch) --- modules/imgproc/src/imgwarp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/imgproc/src/imgwarp.cpp b/modules/imgproc/src/imgwarp.cpp index 7f84a6abcb..030d433927 100644 --- a/modules/imgproc/src/imgwarp.cpp +++ b/modules/imgproc/src/imgwarp.cpp @@ -2416,8 +2416,8 @@ void cv::remap( InputArray _src, OutputArray _dst, { static RemapNNFunc nn_tab[] = { - remapNearest, remapNearest, remapNearest, remapNearest, - remapNearest, remapNearest, remapNearest, 0 + remapNearest, remapNearest, remapNearest, remapNearest, + remapNearest, remapNearest, remapNearest, 0 }; static RemapFunc linear_tab[] =