-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nodes] HDR Fusion: Correctly detect number of brackets
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. Since the path of each image whose exposure is evaluated is available, this commit uses it to determine whether the evaluated dataset is still the same. While it is, the bracket detection is performed as usual: a new exposure group is created whenever the exposure level of an image corresponds to the first exposure level of an already existing group. As soon as it is not, a new group is immediately created, and the rest of the evaluation can resume. Using the paths to determine whether the dataset has changed is chosen over assuming that the exposure levels within a same group should always increase or decrease, as there is no explicit guarantee that this order will always be respected across the provided datasets.
- Loading branch information
Showing
3 changed files
with
73 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters