-
-
Save pranavb-ca/bda3d35c214b7f30d0620d061a2dc346 to your computer and use it in GitHub Desktop.
Replace Func with udpate stage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
avg_box = sum(x, y)/25; //sum(x, y) is the sum of the pixels in a 5x5 neighborhood of (x, y). | |
calc(x, y) = (0); | |
calc(x, y) << 1) + (src_data(x+r.x, y+r.y) > avg_box(x, y)); | |
output(x, y) = calc(x, y); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment