Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Halp me /prog/ramming experts

Name: Unpronounceable name !!MWEigYY65E5W1Ia 2009-05-25 11:54

So I'm working with uncompressed images in C++...
Can anyone write a piece of pseudo code to demonstrate how a horizontal Sobel filter or vertical sobel filter is supposed to work?

Name: Anonymous 2009-05-25 12:22

for x ← 0 to width
    for y ← 0 to height
        dest[x,y] = src[x-1,y-1] + 2 * src[x,y-1] + src[x+1,y-1] - src[x-1,y+1] - 2 * src[x,y+1] - src[x+1,y+1]

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List