mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
do sum calculation in same loop as maskData calculation
This commit is contained in:
parent
51984f4aa8
commit
bc24685344
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user