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

tolerant bracket size selection #2113

Merged
merged 2 commits into from
Jul 17, 2023
Merged

tolerant bracket size selection #2113

merged 2 commits into from
Jul 17, 2023

Conversation

servantftechnicolor
Copy link
Contributor

Bracket size selection is now tolerant to at most two spurious image in the images list.

rule : (Bracket size * countGroupsWithThisSize) >= totalImages - 2

In addition to comparing the exposure levels of the sorted input images
to determine whether a new exposure group must be created, this commit
adds a detection based on the path of the image: if the directory
containing the current image is not the same as the one of the previous
image, then we assume the dataset is different, and there is no point
in comparing the current image's exposure level with the previous one's.

Instead, we directly create a new exposure group.

In cases where images from different datasets have very similar
exposure levels, this prevents having outliers identified as being part
of the current exposure group.
Copy link
Contributor

@cbentejac cbentejac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a detection for new exposure groups based on the path of the images to correctly handle cases where the outlier(s) might have an exposure level that would be coherent with the current exposure group, thus causing an erroneous bracket detection.

For example, if an outlier's exposure level is (22.0, 10.6, 200) and it gets sorted before a dataset whose first image has an exposure level of (22.0, 10.2, 200), both images would be put into the same exposure group unless we use the path information that's available.

@cbentejac cbentejac merged commit 26dee73 into develop Jul 17, 2023
@cbentejac cbentejac deleted the dev/tolerantBracketCount branch July 17, 2023 16:23
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