mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03: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
@@ -511,7 +511,7 @@ bool FeatureEvaluator::setImage( InputArray _image, const std::vector<float>& _s
|
||||
{
|
||||
const ScaleData& s = scaleData->at(i);
|
||||
UMat dst(urbuf, Rect(0, 0, s.szi.width - 1, s.szi.height - 1));
|
||||
resize(_image, dst, dst.size(), 1. / s.scale, 1. / s.scale, INTER_LINEAR);
|
||||
resize(_image, dst, dst.size(), 1. / s.scale, 1. / s.scale, INTER_LINEAR_EXACT);
|
||||
computeChannels((int)i, dst);
|
||||
}
|
||||
sbufFlag = USBUF_VALID;
|
||||
@@ -526,7 +526,7 @@ bool FeatureEvaluator::setImage( InputArray _image, const std::vector<float>& _s
|
||||
{
|
||||
const ScaleData& s = scaleData->at(i);
|
||||
Mat dst(s.szi.height - 1, s.szi.width - 1, CV_8U, rbuf.ptr());
|
||||
resize(image, dst, dst.size(), 1. / s.scale, 1. / s.scale, INTER_LINEAR);
|
||||
resize(image, dst, dst.size(), 1. / s.scale, 1. / s.scale, INTER_LINEAR_EXACT);
|
||||
computeChannels((int)i, dst);
|
||||
}
|
||||
sbufFlag = SBUF_VALID;
|
||||
|
||||
Reference in New Issue
Block a user