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

Latest commit

 

History

History
25 lines (18 loc) · 829 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 829 Bytes

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