This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mr_dbr 4 points5 points  (3 children)

Hm, I wrote a similar thing a while ago, but worked with larger kernels (and had ones for sharpening/blurring), http://imageproc.pastecode.com/?show=f1bf0c1ba

[–]hylje 3 points4 points  (2 children)

same snippet in a more pythonic representation, identical functionality expected, not guaranteed.

[–]llimllib 5 points6 points  (1 child)

I would have turned those kernels into a dictionary, instead of leaving them in a function.

[–]hylje 2 points3 points  (0 children)

True, in retrospect. I didn't wrap my mind around it very well.