From 602b08d9c7bc32da2f6ae698869630ac89e33eb0 Mon Sep 17 00:00:00 2001 From: Ce Zheng Date: Fri, 22 Dec 2017 16:03:12 +0800 Subject: [PATCH] Update resize inline comments Reading through the implementation, I feel this line of comment is not consistent with the actually code, so this is for correcting it. --- modules/imgproc/src/resize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/resize.cpp b/modules/imgproc/src/resize.cpp index 14a037780a..d0252443ad 100644 --- a/modules/imgproc/src/resize.cpp +++ b/modules/imgproc/src/resize.cpp @@ -3945,7 +3945,7 @@ void resize(int src_type, if( interpolation == INTER_LINEAR && is_area_fast && iscale_x == 2 && iscale_y == 2 ) interpolation = INTER_AREA; - // true "area" interpolation is only implemented for the case (scale_x <= 1 && scale_y <= 1). + // true "area" interpolation is only implemented for the case (scale_x >= 1 && scale_y >= 1). // In other cases it is emulated using some variant of bilinear interpolation if( interpolation == INTER_AREA && scale_x >= 1 && scale_y >= 1 ) {