fix warnings: unused variables

This commit is contained in:
Nikolaus Demmel 2021-11-06 00:46:29 +01:00 committed by Vladyslav Usenko
parent 5c32ac289e
commit 26a21d8890
1 changed files with 4 additions and 4 deletions

View File

@ -81,8 +81,8 @@ VignetteEstimator::VignetteEstimator(
void VignetteEstimator::compute_error(
std::map<TimeCamId, std::vector<double>> *reprojected_vignette_error) {
double error = 0;
double mean_residual = 0;
// double error = 0;
// double mean_residual = 0;
double max_residual = 0;
int num_residuals = 0;
@ -110,8 +110,8 @@ void VignetteEstimator::compute_error(
double e =
irradiance[i] * vign_param[tcid.cam_id].evaluate(loc)[0] - val;
ve[i] = e;
error += e * e;
mean_residual += std::abs(e);
// error += e * e;
// mean_residual += std::abs(e);
max_residual = std::max(max_residual, std::abs(e));
if (max_residual == std::abs(e)) {
tcid_max = tcid;