Skip to content

Commit

Permalink
eee
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricporter committed Jul 14, 2012
1 parent 75a0e90 commit e57b007
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions EffectLab/Effect.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,18 @@ def filter(self, img):

found = 0
psum = (0, ) * nband
new_img.putpixel((x, y), (128, 128, 128, 255))
# new_img.putpixel((x, y), (128, 128, 128, 255))

for ai in range(antialias):
_x = x + ai
for aj in range(antialias):
_x = x + ai
_y = y + aj

u, v = self.warp(_x, _y, r, (cx, cy), (mx, my))
u = int(round(u))
v = int(round(v))
if not (0 <= u < width and 0 <= v < height):
continue
pt = img.getpixel((u, v))
psum = map(operator.add, psum, pt)
found += 1
Expand Down

0 comments on commit e57b007

Please sign in to comment.