To give you an ad-free browsing experience, this website is completely funded by donations. If you use the information in this article to solve a problem, entertain yourself, or otherwise improve your life, please consider a small donation to help pay for server costs. Many thanks, and enjoy the site!

Graphics Code

Edge Detection (in VB6)

Edge detection (also called “boundary detection”) is a fundamental problem in image processing.  The ability to accurately detect visible “edges” in an image has many applications – ranging from missile targeting to OCR to cool Photoshop effects.  In this project I’ve compiled 6 well-known edge detection algorithms (along with two of my own for fun).  Full VB6 source code is provided, along with an .exe for those interested in just the effect.

Download Edge Detection Code (86 kb)

For those who have never used edge detection algorithms before, here’s an idea of the output:

Original image:

Lost_TV

Prewitt method (horizontal):

lost_1

Prewitt method (vertical):

lost_2

Sobel method (horizontal):

lost_3

Sobel method (vertical):

lost_4

Laplacian method:

lost_5

Hilite method:

lost_6

Tanner’s method 1:

lost_7

Tanner’s method 2:

lost_8

 

BSD License
All source code in the above zip file has been released under a BSD License.

 

Related articles:

Discussion (Oldest Comments Displayed First)

2 comments on “Edge Detection (in VB6)”

  1. We did edge detection using the Sobel operator on FPGA and on C (for simulation).
    For more details see
    the Hardware Edge detector Project

    Posted by the edge detection project | May 25, 2009, 12:43 pm
  2. Cool, we did edge detection on FPGA and C program, VB6 hmmm

    Posted by the edge detection project | May 25, 2009, 12:45 pm

Post a comment

Feel free to use any of these tags in your comment: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>