dehaze: added lumimance mode from ART, #5456, thanks to @agriggio

This commit is contained in:
Ingo Weyrich
2019-09-20 14:03:09 +02:00
parent 7d5ec6c067
commit 7ff3192cc9
9 changed files with 75 additions and 14 deletions

View File

@@ -210,6 +210,11 @@ public:
return r * workingspace[1][0] + g * workingspace[1][1] + b * workingspace[1][2];
}
static vfloat rgbLuminance(vfloat r, vfloat g, vfloat b, const vfloat workingspace[3])
{
return r * workingspace[0] + g * workingspace[1] + b * workingspace[2];
}
/**
* @brief Convert red/green/blue to L*a*b
* @brief Convert red/green/blue to hue/saturation/luminance