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

Color checker detection and correction update #1532

Draft
wants to merge 19 commits into
base: develop
Choose a base branch
from

Conversation

demoulinv
Copy link
Contributor

@demoulinv demoulinv commented Sep 11, 2023

Description

Update the color checker detection and correction to have a better processing of linear images, enable some new processing modes and combination of several color checkers detected in the same dataset.

linked to alicevision/Meshroom#2186

Features list

  • Set "sRGB linear" as the processing color space for color correction.
  • Add processing modes "Luminance Only" and "White Balance Only" in addition to the full color processing mode.
  • Quality metric for a color checker in an image based on area and pose.
  • Enable usage of several color checkers in a set of images by combining them.
  • Add option to launch color checker detection only on images with a name matching a filter.
  • Forward specific image name through HDR fusion.

Implementation remarks

demoulinv added 5 commits September 14, 2023 14:52
Deal with images in a linear color space as input.
Add a mode for only adjusting the image luminance.
Compute an orientation info for every detected color checker.
Option to select the best oriented color checker or combine them if several are detected.
…ly for images with a name matching a filter.

[hdr merging] Forward the suffix "_macbeth" to the hdr image name if at least one of the merged images has a name suffixed with that.
@cbentejac cbentejac added this to the 3.2.0 milestone Sep 15, 2023
demoulinv and others added 12 commits September 15, 2023 20:25
Deal with images in a linear color space as input.
Add a mode for only adjusting the image luminance.
Compute an orientation info for every detected color checker.
Option to select the best oriented color checker or combine them if several are detected.
…ly for images with a name matching a filter.

[hdr merging] Forward the suffix "_macbeth" to the hdr image name if at least one of the merged images has a name suffixed with that.
…olors

In some cases, the colors written in the JSON file of the detected checkers
can be set as "-nan". When that occurs, the value is not considered as a
"double", which raises a fatal issue ("cannot converted type to double").

Here, if the requested color value cannot be retrieved, or if it is not
a double, it will be set to 0 instead of stopping the program.
To prevent segmentation faults when attempting to access out of range
pixels, we check that the location of the pixel is within the image.
Copy link
Member

@fabiencastan fabiencastan left a comment

Choose a reason for hiding this comment

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

HDR fusion should not have hardcoded information specific to other nodes.

@demoulinv demoulinv marked this pull request as draft September 26, 2023 06:09
@cbentejac cbentejac removed this from the 3.2.0 milestone Oct 11, 2023
@fabiencastan fabiencastan added this to the 3.3.0 milestone Jan 11, 2024
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.

None yet

3 participants