This library provides a simple implementation of edge detection using the Sobel operator. It is designed to be lightweight and efficient, focusing solely on processing grayscale images to detect edges and is made using only pure C.
- Edge Detection: Utilizes the Sobel operator to detect edges in grayscale images.
- More coming soon.
git clone https://github.com/yourusername/edge-detection-library.git
gcc main.c kernel.c -o main
load.py
loads the image you want to perform edge detection on by passing the image path as a parameter and converts the image int grayscale and dumps the data into a text file for the C program to read.
display.py
displays the image after the convolution is done by the main.c program.
Edge detection performed using sobel operator
-1 | 0 | 1 |
---|---|---|
-2 | 0 | 2 |
-1 | 0 | 1 |