Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

thushanperera95/Edge-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published