https://github.com/akhuntsaria/canny-edge-detection
Canny edge detector implemented in CUDA C/C++
https://github.com/akhuntsaria/canny-edge-detection
cuda image-processing video-processing
Last synced: 2 months ago
JSON representation
Canny edge detector implemented in CUDA C/C++
- Host: GitHub
- URL: https://github.com/akhuntsaria/canny-edge-detection
- Owner: akhuntsaria
- Created: 2024-10-10T19:01:00.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-02-15T14:39:22.000Z (5 months ago)
- Last Synced: 2025-03-31T00:23:55.631Z (4 months ago)
- Topics: cuda, image-processing, video-processing
- Language: Cuda
- Homepage:
- Size: 3.8 MB
- Stars: 26
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# What is this?
Canny edge detection implemented in CUDA C/C++. Supports images and video. OpenCV is used for loading and writing media. Compiled for CUDA compute capability 8.9 (compute_89, sm_89) and tested on RTX 4060.Comparison with an example from the [article](https://en.wikipedia.org/wiki/Canny_edge_detector#):
# Configure
* headless - `true` for just writing output files, `false` for GUI
* media - `image` or `video`
* in - input path
* lowThreshold, highThreshold - percentages for retaining or discarding edges based on pixel values# Compile
```sh
nvcc -arch=sm_89 -O3 -o canny *.cu `pkg-config --cflags --libs opencv4`
```