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: Correctly detect the number of brackets when there are several intrinsics #2104

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

cbentejac
Copy link
Contributor

@cbentejac cbentejac commented Jul 7, 2023

Description

This PR relates to alicevision/AliceVision#1484.

The detection of the number of brackets used to only work in a case where there was a single dataset / a single camera intrinsics. If two datasets with the same number of brackets were provided, the detection was failing because we expected the exposure levels to be uniform across all the images.

If more than one dataset is provided, there is no guarantee that the exposure groups will be identical although the number of brackets is the same.

The inputs are however sorted, and the shutter speeds are expected to be decreasing, meaning that a shutter speed N superior to a shutter speed N-1 indicates a new group. In the same manner, ISO or aperture values that change from one input to the next one indicate a new group.

For the comparison between exposure levels to be valid, the aperture, shutter speed and ISO values need to be stored in tuples as floats instead of strings.

This method is used for the following nodes:

  • LdrToHdrSampling
  • LdrToHdrCalibration
  • LdrToHdrMerge

@cbentejac cbentejac added this to the Meshroom 2023.3.0 milestone Jul 7, 2023
@cbentejac cbentejac self-assigned this Jul 7, 2023
@cbentejac cbentejac marked this pull request as draft July 7, 2023 14:29
@cbentejac cbentejac marked this pull request as ready for review July 7, 2023 15:15
The detection of the number of brackets used to only work in a case where
there was a single dataset / a single camera intrinsics. If two datasets
with the same number of brackets were provided, the detection was failing
because we expected the exposure levels to be uniform across all the
images.

If more than one dataset is provided, there is no guarantee that the
exposure groups will be identical although the number of brackets is the
same.

The inputs are however sorted, and the shutter speeds are expected to be
decreasing, meaning that a shutter speed N superior to a shutter speed N-1
indicates a new group. In the same manner, ISO or aperture values that
change from one input to the next one indicate a new group.

For the comparison between exposure levels to be valid, the aperture,
shutter speed and ISO values need to be stored in tuples as floats instead
of strings.
@mugulmd mugulmd merged commit 9d09e85 into develop Jul 10, 2023
2 checks passed
@mugulmd mugulmd deleted the dev/multipleIntrinsicsHdr branch July 10, 2023 09:55
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.

2 participants