mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
Merge pull request #16194 from alalek:fix_16192
* imgproc(test): resize(LANCZOS4) reproducer 16192 * imgproc: fix resize LANCZOS4 coefficients generation
This commit is contained in:
committed by
GitHub
parent
5bf7345743
commit
4733a19bab
@@ -1708,6 +1708,19 @@ TEST(Resize, Area_half)
|
||||
}
|
||||
}
|
||||
|
||||
TEST(Resize, lanczos4_regression_16192)
|
||||
{
|
||||
Size src_size(11, 17);
|
||||
Size dst_size(11, 153);
|
||||
Mat src(src_size, CV_8UC3, Scalar::all(128));
|
||||
Mat dst(dst_size, CV_8UC3, Scalar::all(255));
|
||||
|
||||
cv::resize(src, dst, dst_size, 0, 0, INTER_LANCZOS4);
|
||||
|
||||
Mat expected(dst_size, CV_8UC3, Scalar::all(128));
|
||||
EXPECT_EQ(cvtest::norm(dst, expected, NORM_INF), 0) << dst(Rect(0,0,8,8));
|
||||
}
|
||||
|
||||
TEST(Imgproc_Warp, multichannel)
|
||||
{
|
||||
static const int inter_types[] = {INTER_NEAREST, INTER_AREA, INTER_CUBIC,
|
||||
|
||||
Reference in New Issue
Block a user