Looks like some kind of merge error happened here which i didn't notice. Corrected!

This commit is contained in:
Sergey Sharybin
2012-06-09 18:26:26 +00:00
parent 1acd2c58b6
commit a8bae06dc4

View File

@@ -83,13 +83,11 @@ void KeyingClipOperation::executePixel(float *color, float x, float y, PixelSamp
color[0] = pixelColor[0];
if (count_black >= 22 || count_white >= 22) {
if (count_black >= 4 || count_white >= 4) {
if (color[0] < this->clipBlack)
color[0] = 0.0f;
else if (color[0] >= this->clipWhite)
color[0] = 1.0f;
else
color[0] = (color[0] - this->clipBlack) / (this->clipWhite - this->clipBlack);
}
if (color[0] < this->clipBlack)
color[0] = 0.0f;
else if (color[0] >= this->clipWhite)
color[0] = 1.0f;
else
color[0] = (color[0] - this->clipBlack) / (this->clipWhite - this->clipBlack);
}
}