Fixed random color dots in dark areas using some Canon DCP profiles

see issue 1406
This commit is contained in:
Oliver Duis
2012-06-10 21:01:17 +02:00
parent 79527e99fb
commit ef21ae5e8d
5 changed files with 8 additions and 79 deletions

View File

@@ -18,7 +18,7 @@
*/
#include "hsvequalizer.h"
#include "../rtengine/utils.h"
#include "../rtengine/improcfun.h"
using namespace rtengine;
using namespace rtengine::procparams;
@@ -195,19 +195,19 @@ void HSVEqualizer::colorForValue (double valX, double valY) {
h -= 1.0;
else if (h < 0.0)
h += 1.0;
hsv2rgb(h, (float)0.5, (float)0.5, r, g, b);
ImProcFunctions::hsv2rgb(h, (float)0.5, (float)0.5, r, g, b);
red = (double)r;
green = (double)g;
blue = (double)b;
}
else if (ce == sshape) { // Saturation = f(Hue)
hsv2rgb((float)valX, (float)valY, (float)0.5, r, g, b);
ImProcFunctions::hsv2rgb((float)valX, (float)valY, (float)0.5, r, g, b);
red = (double)r;
green = (double)g;
blue = (double)b;
}
else if (ce == vshape) { // Value = f(Hue)
hsv2rgb((float)valX, (float)0.5, (float)valY, r, g, b);
ImProcFunctions::hsv2rgb((float)valX, (float)0.5, (float)valY, r, g, b);
red = (double)r;
green = (double)g;
blue = (double)b;