pixelshift: partly fixed wrong colouring of red/blue cross check motion mask. Not good, but better than last one

This commit is contained in:
heckflosse 2016-12-04 23:59:42 +01:00
parent 4384819eee
commit d498e5f5c5

View File

@ -110,7 +110,7 @@ float nonGreenDiffCross(float a, float b, float c, float d, float centre, float
if(!showMotion) {
return result;
} else if(result > 0.f) { // for the motion mask
return std::fabs(a - b) / (std::max(a, b) + 0.01f);
return std::sqrt((result / (stddev + result + 0.01f))); //1.f; //std::fabs(a - b) / (std::max(a, b) + 0.01f);
} else {
return 0.f;
}