diff --git a/Core/Utils/RGBDOdometry.cpp b/Core/Utils/RGBDOdometry.cpp index f4fa9e8..1ef5c91 100644 --- a/Core/Utils/RGBDOdometry.cpp +++ b/Core/Utils/RGBDOdometry.cpp @@ -99,7 +99,7 @@ RGBDOdometry::RGBDOdometry(int width, int height, float cx, float cy, float fx, vmaps_tmp.create(height * 4 * width); nmaps_tmp.create(height * 4 * width); - minimumGradientMagnitudes.reserve(NUM_PYRS); + minimumGradientMagnitudes.resize(NUM_PYRS); minimumGradientMagnitudes[0] = 5; minimumGradientMagnitudes[1] = 3; minimumGradientMagnitudes[2] = 1;