Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nodes] HDR Fusion: Do not send nbBrackets parameter to the command line when the bracket detection is automatic #2117

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

cbentejac
Copy link
Contributor

Description

This PR updates the command line for the HDR Fusion nodes (LdrToHdrSampling, LdrToHdrCalibration and LdrToHdrMerge) with or without the nbBrackets parameters depending on whether the number of brackets is detected automatically or provided by the user.

If the user provides it, it is added to the command line as --nbBrackets x. If the detection is automatic, the nbBrackets parameter is not part of the command line, and the brackets will be automatically detected on the AliceVision side.

The goal is to be able to distinguish, from the AliceVision side, cases where the number of brackets is determined automatically or set by the user; up until now, Meshroom always sent a fixed number of brackets (either automatically detected or provided by the user), without any way to distinguish where it came from.

The number of brackets that is displayed in the Image Gallery remains unchanged, and the automatic detection will still occur if needed.

Implementation remarks

The nbBrackets parameter is excluded from the "allParams" group, withdrawing it by default from the command line. When the chunks are being processed, the command line is updated with it if the number of brackets has been provided by the user. If it has not, the command line is reset (at every iteration) to ensure that there are no --nbBrackets leftovers when we are switching between the automatic bracket detection and the manually-specified brackets number.

Rather than dynamically modifying the command line, the nbBrackets and userNbBrackets logic could be reversed for this to be done automatically. This however involves a lot of code modification that needs to be carried out throughout all the HDR Fusion nodes, and will thus be the focus of an ulterior pull request.

@cbentejac cbentejac added this to the Meshroom 2023.3.0 milestone Jul 18, 2023
@cbentejac cbentejac self-assigned this Jul 18, 2023
…tions

Reset the command line at every iteration to ensure that there is no
"--nbBrackets" leftovers when we are switching between the automatic
bracket detection and the manually specified brackets number.
@cbentejac cbentejac force-pushed the dev/autoBracketDetectionParam branch from fff1380 to 6fe82a3 Compare July 18, 2023 15:54
@mugulmd mugulmd merged commit a12674e into develop Jul 18, 2023
2 checks passed
@mugulmd mugulmd deleted the dev/autoBracketDetectionParam branch July 18, 2023 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants