thushanperera95 / Edge-Detector

C implementation of the Sobel and Robert's Cross edge detection algorithms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edge Detector in C

Implementation of the Sobel and Robert's Cross edge detection algorithms.

Notes:

Only supports the .pgm file format. Feel free to add support for other file formats like .png Deals with edges of the image by ignoring a 1 pixel border around the image. Lower the value of 'threshold' in the 'process' function for better edge detection.

Build:

Run makefile

Usage:

./process -p .pgm -o .pgm [-s] -s parameter to enable Sobel. The default is Robert's Cross.

Examples:
Lena Original

Alt text

Lena with Robert's Cross

Alt text

Lena with Sobel

Alt text

About

C implementation of the Sobel and Robert's Cross edge detection algorithms.

License:MIT License


Languages

Language:C 98.5%Language:Makefile 1.5%