Don't you mean
|foo| |foo[0]| result[x][y] = sum sum image[x+i][y+j] * foo[i][j] i=0 j=0
? Although having the kernel centered around the pixel instead of below/right might be more useful.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
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)