This repository contains code for edge detection using various filters such as Prewitt, Sobel, Laplace, and Canny. All of these filters are implemented from scratch using the C++ OpenCV library.
- Visual Studio 2019 or later.
- OpenCV 4.7.0 or later.
- Clone the repository:
git clone https://github.com/nbtin/edge-detection
- Open the project in Visual Studio.
- Install the OpenCV library for your VS project.
- Build the project.
-
Download the executable file from the Releases page.
-
Download the dll files from the OpenCV library and place them in the same directory as the executable file.
If you can not find the dll files, you can download them from here.
-
Run the executable file from the command line with the
help
flag to see the usage instructions. Just replace the exe filename with the one you downloaded from my Releases page.
Here are some examples of edge detection using different filters for the Lenna image:
Contributions are welcome! Please open an issue or pull request for any bug fixes or feature requests.
This project is licensed under the MIT License - see the LICENSE file for details.