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.
pull/10388/head
Ce Zheng 7 years ago committed by GitHub
parent 1bc1f3d311
commit 602b08d9c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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 ) if( interpolation == INTER_LINEAR && is_area_fast && iscale_x == 2 && iscale_y == 2 )
interpolation = INTER_AREA; 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 // In other cases it is emulated using some variant of bilinear interpolation
if( interpolation == INTER_AREA && scale_x >= 1 && scale_y >= 1 ) if( interpolation == INTER_AREA && scale_x >= 1 && scale_y >= 1 )
{ {

Loading…
Cancel
Save