mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
Implementation of bit-exact resize. Internal calls to linear resize updated to use bit-exact version. (#9468)
This commit is contained in:
committed by
Vadim Pisarevsky
parent
84ee4d701a
commit
51cb56ef2c
@@ -77,7 +77,7 @@ bool CvCascadeImageReader::NegReader::nextImg()
|
||||
((float)winSize.height + point.y) / ((float)src.rows) );
|
||||
|
||||
Size sz( (int)(scale*src.cols + 0.5F), (int)(scale*src.rows + 0.5F) );
|
||||
resize( src, img, sz );
|
||||
resize( src, img, sz, 0, 0, INTER_LINEAR_EXACT );
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ bool CvCascadeImageReader::NegReader::get( Mat& _img )
|
||||
point.y = offset.y;
|
||||
scale *= scaleFactor;
|
||||
if( scale <= 1.0F )
|
||||
resize( src, img, Size( (int)(scale*src.cols), (int)(scale*src.rows) ) );
|
||||
resize( src, img, Size( (int)(scale*src.cols), (int)(scale*src.rows) ), 0, 0, INTER_LINEAR_EXACT );
|
||||
else
|
||||
{
|
||||
if ( !nextImg() )
|
||||
|
||||
Reference in New Issue
Block a user