From 68a94665e5dac2b964670fd9107a0d1355318971 Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Wed, 1 Jun 2011 08:19:21 +0000 Subject: [PATCH] compilation for windows --- modules/features2d/src/orb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/features2d/src/orb.cpp b/modules/features2d/src/orb.cpp index 3b15be2e70..132b6bda4a 100644 --- a/modules/features2d/src/orb.cpp +++ b/modules/features2d/src/orb.cpp @@ -470,7 +470,7 @@ ORB::ORB(size_t n_features, const CommonParams & detector_params) : { // fill the extractors and descriptors for the corresponding scales float factor = 1.0 / params_.scale_factor_ / params_.scale_factor_; - int n_desired_features_per_scale = cvRound(n_features / ((std::pow(factor, params_.n_levels_) - 1) / (factor - 1))); + int n_desired_features_per_scale = cvRound(n_features / ((std::pow(factor, (int)params_.n_levels_) - 1) / (factor - 1))); n_features_per_level_.resize(detector_params.n_levels_); for (unsigned int level = 0; level < detector_params.n_levels_; level++) {