@@ -59,7 +59,7 @@ void kill_outliers_double(struct sm_params*params) {
5959 if (!ld_valid_corr (laser_sens, i)) continue ;
6060 int j1 = laser_sens->corr [i].j1 ;
6161 dist2_i[i] = laser_sens->corr [i].dist2_j1 ;
62- dist2_j[j1] = std::min (dist2_j[j1], dist2_i[i]);
62+ dist2_j[j1] = ( std::min) (dist2_j[j1], dist2_i[i]);
6363 }
6464
6565 int nkilled = 0 ;
@@ -121,7 +121,7 @@ void kill_outliers_trim(struct sm_params*params, double*total_error) {
121121 /* two errors limits are defined: */
122122 /* In any case, we don't want more than outliers_maxPerc% */
123123 int order = (int )floor (k*(params->outliers_maxPerc ));
124- order = std::max (0 , std::min (order, k-1 ));
124+ order = ( std::max) (0 , ( std::min) (order, k-1 ));
125125
126126 /* The dists for the correspondence are sorted
127127 in ascending order */
@@ -131,10 +131,10 @@ void kill_outliers_trim(struct sm_params*params, double*total_error) {
131131 /* Then we take a order statics (o*K) */
132132 /* And we say that the error must be less than alpha*dist(o*K) */
133133 int order2 = (int )floor (k*params->outliers_adaptive_order );
134- order2 = std::max (0 , std::min (order2, k-1 ));
134+ order2 = ( std::max) (0 , ( std::min) (order2, k-1 ));
135135 double error_limit2 = params->outliers_adaptive_mult *dist2[order2];
136136
137- double error_limit = std::min (error_limit1, error_limit2);
137+ double error_limit = ( std::min) (error_limit1, error_limit2);
138138
139139#if 0
140140 double error_limit1_ho = hoare_selection(dist2_copy, 0, k-1, order);
0 commit comments