Skip to content

Conversation

@mbsaloka
Copy link
Member

Jira Link:

https://ichiro-its.atlassian.net/browse/PD-482

Description

Add LAB color classification, better for outdoor color detection.

Type of Change

  • Bugfix
  • Enhancement
  • New feature
  • Breaking change (fix or feature that would cause the existing functionality to not work as expected)

How Has This Been Tested?

  • New unit tests added.
  • Manual tested.

Checklist:

  • Using Branch Name Convention
    • feature/JIRA-ID-SHORT-DESCRIPTION if has a JIRA ticket
    • enhancement/SHORT-DESCRIPTION if has/has no JIRA ticket and contain enhancement
    • hotfix/SHORT-DESCRIPTION if the change doesn't need to be tested (urgent)
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have made the documentation for the corresponding changes.

Comment on lines 29 to 43
const std::string & name,
bool invert_hue,
bool use_lab,
int min_hue,
int max_hue,
int min_saturation,
int max_saturation,
int min_value,
int max_value,
int min_lightness,
int max_lightness,
int min_a,
int max_a,
int min_b,
int max_b)
Copy link
Contributor

@FaaizHaikal FaaizHaikal Dec 15, 2025

Choose a reason for hiding this comment

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

Too high cognitive complexity, i suggest create a ColorConfig struct

@mbsaloka mbsaloka merged commit cbdb37d into master Dec 18, 2025
1 check failed
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.

4 participants