mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53: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
@@ -281,13 +281,13 @@ float ShapeContextDistanceExtractorImpl::computeDistance(InputArray contour1, In
|
||||
// compute appearance cost
|
||||
if ( !transDown.empty() )
|
||||
{
|
||||
resize(warpedImage, warpedImage, image1.size());
|
||||
resize(warpedImage, warpedImage, image1.size(), 0, 0, INTER_LINEAR_EXACT);
|
||||
Mat temp=(warpedImage-image1);
|
||||
multiply(temp, temp, diffIm);
|
||||
}
|
||||
else
|
||||
{
|
||||
resize(warpedImage, warpedImage, image2.size());
|
||||
resize(warpedImage, warpedImage, image2.size(), 0, 0, INTER_LINEAR_EXACT);
|
||||
Mat temp=(warpedImage-image2);
|
||||
multiply(temp, temp, diffIm);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user