From f051430c69b8553366038a8fd3c472abef20714d Mon Sep 17 00:00:00 2001 From: Vincent Demoulin Date: Fri, 22 Nov 2024 15:52:24 +0100 Subject: [PATCH] Code simplification --- src/software/utils/main_imageProcessing.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/software/utils/main_imageProcessing.cpp b/src/software/utils/main_imageProcessing.cpp index 8f8685dd7c..acb0c3e969 100644 --- a/src/software/utils/main_imageProcessing.cpp +++ b/src/software/utils/main_imageProcessing.cpp @@ -1520,18 +1520,12 @@ int aliceVision_main(int argc, char* argv[]) { filesStrPaths.push_back(inputPath.string()); } - else if (inputFolders.empty()) - { - ALICEVISION_LOG_INFO("Working directory Path '" + inputPath.parent_path().generic_string() + "'."); - - const std::regex regex = utils::filterToRegex(inputExpression); - // Get supported files in inputPath directory which matches our regex filter - filesStrPaths = utils::getFilesPathsFromFolder(inputPath.parent_path().generic_string(), [®ex](const fs::path& path) { - return image::isSupported(path.extension().string()) && std::regex_match(path.generic_string(), regex); - }); - } else { + if (inputFolders.empty()) + { + inputFolders.push_back(inputPath.parent_path().generic_string()); + } const std::regex regex = utils::filterToRegex(inputExpression); for (const auto& inputFolder : inputFolders) {