disabled NPP resize for 8uc4+Cubic (Bug #2388)

This commit is contained in:
Vladislav Vinogradov
2012-10-04 13:33:47 +04:00
parent cfc09d01c8
commit 8d07e92b2c
2 changed files with 3 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ void cv::gpu::resize(const GpuMat& src, GpuMat& dst, Size dsize, double fx, doub
src.locateROI(wholeSize, ofs);
bool useNpp = (src.type() == CV_8UC1 || src.type() == CV_8UC4);
useNpp = useNpp && (interpolation == INTER_NEAREST || interpolation == INTER_LINEAR || (src.type() == CV_8UC4 && interpolation != INTER_AREA));
useNpp = useNpp && (interpolation == INTER_NEAREST || interpolation == INTER_LINEAR);
if (useNpp)
{