Skip to content

Commit

Permalink
Code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
demoulinv committed Nov 22, 2024
1 parent d72891d commit d201029
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/software/utils/main_imageProcessing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(), [&regex](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)
{
Expand Down

0 comments on commit d201029

Please sign in to comment.