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

This commit is contained in:
Vadim Pisarevsky 2012-03-26 09:12:27 +00:00
parent befa9b3109
commit 098fc1a62e

View File

@ -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[] =