pixelshift: partly fixed wrong colouring of red/blue cross check motion mask. Not good, but better than last one
This commit is contained in:
parent
4384819eee
commit
d498e5f5c5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user