Commit 098fc1a6 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed nearest-neighbor remap with constant border, ticket #1681 (thanks to Vlad for the patch)

parent befa9b31
...@@ -2416,8 +2416,8 @@ void cv::remap( InputArray _src, OutputArray _dst, ...@@ -2416,8 +2416,8 @@ void cv::remap( InputArray _src, OutputArray _dst,
{ {
static RemapNNFunc nn_tab[] = static RemapNNFunc nn_tab[] =
{ {
remapNearest<uchar>, remapNearest<uchar>, remapNearest<ushort>, remapNearest<ushort>, remapNearest<uchar>, remapNearest<schar>, remapNearest<ushort>, remapNearest<short>,
remapNearest<int>, remapNearest<int>, remapNearest<double>, 0 remapNearest<int>, remapNearest<float>, remapNearest<double>, 0
}; };
static RemapFunc linear_tab[] = static RemapFunc linear_tab[] =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment