From 3765fe573bbdd86b797b8d70755e9cf6a574d022 Mon Sep 17 00:00:00 2001 From: Souriya Trinh Date: Sun, 11 Aug 2024 19:07:49 +0200 Subject: [PATCH] Increment index to step to the other flag. Update license date. --- script/PlotCameraTrajectory.py | 2 +- .../model-based/generic/tutorial-mb-generic-tracker-save.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/script/PlotCameraTrajectory.py b/script/PlotCameraTrajectory.py index 30398a4504..68f5632c3c 100755 --- a/script/PlotCameraTrajectory.py +++ b/script/PlotCameraTrajectory.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -# Copyright 2022- ViSP contributor +# Copyright 2022-2024 ViSP contributor # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tutorial/tracking/model-based/generic/tutorial-mb-generic-tracker-save.cpp b/tutorial/tracking/model-based/generic/tutorial-mb-generic-tracker-save.cpp index 9bcf723fb1..19b72800c1 100644 --- a/tutorial/tracking/model-based/generic/tutorial-mb-generic-tracker-save.cpp +++ b/tutorial/tracking/model-based/generic/tutorial-mb-generic-tracker-save.cpp @@ -49,6 +49,7 @@ int main(int argc, char **argv) } else if ((std::string(argv[i]) == "--save" || std::string(argv[i]) == "-o") && i+1 < argc) { npz_filename = argv[i+1]; + i++; } else if (std::string(argv[i]) == "--color" || std::string(argv[i]) == "-c") { color_mode = true; @@ -56,7 +57,7 @@ int main(int argc, char **argv) else if (std::string(argv[i]) == "--alpha" || std::string(argv[i]) == "-a") { save_alpha = true; } - else if (std::string(argv[i]) == "--print-cMo" && i+1 < argc) { + else if (std::string(argv[i]) == "--print-cMo") { print_cMo = true; } else {