diff --git a/modules/3d/test/test_odometry.cpp b/modules/3d/test/test_odometry.cpp index 8f749df7d8..2ddcfdbf27 100644 --- a/modules/3d/test/test_odometry.cpp +++ b/modules/3d/test/test_odometry.cpp @@ -186,8 +186,7 @@ void OdometryTest::run() Mat mask(image.size(), CV_8UC1, Scalar(255)); odometry.prepareFrame(odf); - bool isComputed; - isComputed = odometry.compute(odf, odf, calcRt); + bool isComputed = odometry.compute(odf, odf, calcRt); if(!isComputed) {