Fixed ComputeMSE bug when using CMSE_IMAGE2_X2_BIAS flag

This commit is contained in:
Chuck Walbourn 2017-07-12 10:06:05 -07:00
parent 31b6c9309c
commit 52aead71d7

View File

@ -126,7 +126,7 @@ namespace
}
if (flags & CMSE_IMAGE2_X2_BIAS)
{
v1 = XMVectorMultiplyAdd(v2, two, g_XMNegativeOne);
v2 = XMVectorMultiplyAdd(v2, two, g_XMNegativeOne);
}
// sum[ (I1 - I2)^2 ]