1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

fixed VS2010 compile warnings and errors

This commit is contained in:
Vadim Pisarevsky
2011-06-06 15:15:30 +00:00
parent 0c877f62e9
commit fcd2a0c3d3
7 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -469,7 +469,7 @@ ORB::ORB(size_t n_features, const CommonParams & detector_params) :
params_(detector_params), n_features_(n_features)
{
// fill the extractors and descriptors for the corresponding scales
float factor = 1.0 / params_.scale_factor_ / params_.scale_factor_;
float factor = (float)(1.0 / params_.scale_factor_ / params_.scale_factor_);
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_);
+1 -1
View File
@@ -637,7 +637,7 @@ static struct feature* interp_extremum( IplImage*** dog_pyr, int octv,
{
struct feature* feat;
struct detection_data* ddata;
double xi, xr, xc, contr;
double xi=0, xr=0, xc=0, contr;
int i = 0;
while( i < SIFT_MAX_INTERP_STEPS )