CalcIntRec.m: Fix four reference points to correctly calculate sum of pixels