Correct bad hue calculation in locallabtools
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user