1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-21 23:01:45 +08:00

build: eliminate build warnings

This commit is contained in:
Alexander Alekhin
2021-08-28 17:21:53 +00:00
parent e9e507039d
commit ce196ce2d6
7 changed files with 13 additions and 11 deletions

View File

@@ -91,10 +91,10 @@ DSST::DSST(const Mat &image,
scale_sigma = static_cast<float>(sqrt(scales_count) * sigma_factor);
min_scale_factor = pow(scale_step,
cvCeil(log(max(5.0 / template_size.width, 5.0 / template_size.height)) / log(scale_step)));
max_scale_factor = powf(scale_step,
static_cast<float>(cvFloor(log(min((float)image.rows / (float)bounding_box.width,
min_scale_factor = static_cast<float>(pow(scale_step,
cvCeil(log(max(5.0 / template_size.width, 5.0 / template_size.height)) / log(scale_step))));
max_scale_factor = static_cast<float>(pow(scale_step,
cvFloor(log(min((float)image.rows / (float)bounding_box.width,
(float)image.cols / (float)bounding_box.height)) / log(scale_step))));
ys = Mat(1, scales_count, CV_32FC1);
float ss, sf;