Is it supposed to be a "normal" convolution? If so, you should be able to transform the image, multiply and invers-transform. That ought to be faster and (probably) more accurate.
/ Marcus Agehall (PacketFront)
Previous text:
2004-08-26 09:28: Subject: nice-to-have-function
it computes
|foo| |foo[0]|
result[x][y] = sum sum image[i][j] * foo[i][j] i=0 j=0
For each pixel. Where foo[x][y] is a 3x3 matrix and image[i][j] is a vector with 3 elements (r,g,b).
/ Fredrik (Naranek) Hubinette (T minus 2 weeks)