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

pull/13383/head
Vadim Pisarevsky 13 years ago
parent befa9b3109
commit 098fc1a62e
  1. 4
      modules/imgproc/src/imgwarp.cpp

@ -2416,8 +2416,8 @@ void cv::remap( InputArray _src, OutputArray _dst,
{
static RemapNNFunc nn_tab[] =
{
remapNearest<uchar>, remapNearest<uchar>, remapNearest<ushort>, remapNearest<ushort>,
remapNearest<int>, remapNearest<int>, remapNearest<double>, 0
remapNearest<uchar>, remapNearest<schar>, remapNearest<ushort>, remapNearest<short>,
remapNearest<int>, remapNearest<float>, remapNearest<double>, 0
};
static RemapFunc linear_tab[] =

Loading…
Cancel
Save