From 0addbd5ca5469adf99b417ad2a60c72a3f218a46 Mon Sep 17 00:00:00 2001 From: vp153 Date: Fri, 2 Apr 2010 23:22:16 +0000 Subject: [PATCH] avoid testing too small images using Lanczos (possibly need to fix the case later) git-svn-id: https://code.ros.org/svn/opencv/trunk@2978 73c94f0f-984f-4a5f-82bc-2d8db8d8ee08 --- opencv/tests/cv/src/aimgwarp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opencv/tests/cv/src/aimgwarp.cpp b/opencv/tests/cv/src/aimgwarp.cpp index 5ccb9b10..c36360a9 100644 --- a/opencv/tests/cv/src/aimgwarp.cpp +++ b/opencv/tests/cv/src/aimgwarp.cpp @@ -311,6 +311,10 @@ void CV_ResizeTest::get_test_array_types_and_sizes( int test_case_idx, CvSize** sizes[INPUT_OUTPUT][0] = sizes[REF_INPUT_OUTPUT][0] = sizes[INPUT][0]; sizes[INPUT][0] = sz; } + if( interpolation == 4 && + (MIN(sizes[INPUT][0].width,sizes[INPUT_OUTPUT][0].width) < 4 || + MIN(sizes[INPUT][0].height,sizes[INPUT_OUTPUT][0].height) < 4)) + interpolation = 2; } -- 2.39.2