-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|98|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Graphical Effects


 
Scherererer
Created : 19 July 2009
 
Language : Blitz

The Sobel Function

A method used in image processing & edge finding

So, I was a bit disappointed that so many people here thought that math wasn't useful, especially among a coding community such that we're in. In an effort to get you all more interested into math, here is a quickie demo of the Sobel method, which uses directional derivatives (Calculus) to find the edges of things in a picture.

There are many applications for this, especially in the area of Computer Vision, some of which I do for building autonomous robots. I plan on eventually turning this into an article, and hopefully making more articles with information on how math can be directly applied to coding, and how you can use some of these things to do some really cool stuff.


 

Comments


Wednesday, 12 May 2010, 12:33
Longarm
Awesome effect! (could it be sped up for a realtime useage, maybe with lock/unlock buffer?)
Wednesday, 12 May 2010, 12:47
JL235
Yes, it appeares instantly for me. I'd imagine there might also be some clever algorithm changes you can make to avoid reading a pixel 3 times; to get that down to a single read per pixel.

Awesome effect btw, I really like it.
Friday, 23 July 2010, 15:10
Andy_A
Sorry it took so long to comment on this, but it's great!

It worked on every type of picture (even pictures of text).

Nice one!