Correct bad hue calculation in locallabtools

This commit is contained in:
Desmis
2020-07-15 18:32:32 +02:00
parent fb4434f15a
commit 3a5213454f
2 changed files with 1 additions and 2 deletions

View File

@@ -1839,7 +1839,6 @@ public:
} else if (HH >= -0.1f && HH < 0.f ) {
hr = 0.1 * double(HH) + 0.93; //hr 0.92 0.93 red
}
// in case of !
if (hr < 0.0) {
hr += 1.0;

View File

@@ -253,7 +253,7 @@ void LocallabTool::refChanged(const double huer, const double lumar, const doubl
// Hue reference normalization (between 0 and 1)
double normHuer = huer;
float h = Color::huelab_to_huehsv2(normHuer);
h += 1.f / 6.f;
// h += 1.f / 6.f;
if (h > 1.f) {
h -= 1.f;