Respository contains my implementations of Sobel and Canny Edge Detection algorithms
Compile m_sobel.c
and run using:
$sobel.exe inputName.pgm (int) lowThresh (int)highThresh
Example usage:
$sobel.exe garb34.pgm 20 120
Compile m_canny.c
and run using:
$m_canny.exe inputFile.pgm out1.pgm out2.pgm out3.pgm (int)sigmaThreshold (int)percentThreshold
Example usage:
$m_canny.exe garb34.pgm out1.pgm out2.pgm out3.pgm 1 10
m_sobel.c
andm_canny.c
are intended to run on a 256x256px grayscale image in .pgm format.- Compiled and ran on windows, never tested on Ubuntu/Mac so when compiling or running YMMV