Skip to content

Latest commit

 

History

History
52 lines (30 loc) · 1.43 KB

README.md

File metadata and controls

52 lines (30 loc) · 1.43 KB

Image Processing Library In C

Overview

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.

Features

  • Edge Detection: Utilizes the Sobel operator to detect edges in grayscale images.
  • More coming soon.

Installation

git clone https://github.com/yourusername/edge-detection-library.git

Compiling

gcc main.c kernel.c -o main

Python Scripts

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.

Examples

Edge detection performed using sobel operator

-1 0 1
-2 0 2
-1 0 1

Before

WhatsApp Image 2024-08-19 at 9 55 53 PM

WIN_20240817_17_02_12_Pro

After

output_image2

output_image2