do sum calculation in same loop as maskData calculation

This commit is contained in:
homm 2014-10-12 14:21:13 +04:00
parent 51984f4aa8
commit bc24685344

View File

@ -73,11 +73,6 @@ gblur(Imaging im, Imaging imOut, float radius, float effectiveScale, int channel
} else {
maskData[pix] = 1;
}
}
for (pix = 0; pix < window; pix++) {
/* this is done separately now due to the correction for float
radius values above */
sum += maskData[pix];
}