Git Product home page Git Product logo

cannyedgedetector's Introduction

CannyEdgeDetector

Disclaimer

This is my student project. Some parts of code may be influenced by various examples found on internet. It is licensed freely on GNU General Public License v2: http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

As this project was written some time ago, I may not remember nor recognize sources I have been working with. As I recall, most if not all of the code was written from scratch. I you find here recognizable part of your work, please contact me either through GitHub or by e-mail which you will find in sources.

About

This is (very) naive implementation of Canny Edge Detection algorithm (http://en.wikipedia.org/wiki/Canny_edge_detector). All this code was written some time ago, long forgotten and only recently found. I made few changes, translated comments to English, cleaned up code a bit and that's it. Don't expect brilliant programming techniques, efficiency and resource savings. It compiles and have not crashed for some time now. This is all you get. Probably the most urgent changes should be those dealing with memory consumption. However, am not eager to change this, at least at the moment.

Application consist of two C++ classes, EdgeApp and CannyEdgeDetector. First is just an example app written with use of wxWidgets. It displays simple window with preview of loaded image and after clicking on button, another window with algorithm result. It uses CannyEdgeDetector by putting into it an RGB array of image pixels. EdgeApp acts as a wrapper, it can be easily dropped.

CannyEdgeDetector simply performs all steps of algorithm in one method, ProcessImage. Although it is written in C++ it does not require an fancy libraries, only one used is math.h for atan2(). Thus, it should be easily portable to any platform and language.

Simple Makefile allows to quickly build application in any Unix with GCC and wxWidgets installed.

cannyedgedetector's People

Contributors

resset avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cannyedgedetector's Issues

Run error!

  Hello, Firstly, thanks your public code. But, When I run your code, the program is stop when it run to function

EdgeDetection.
value_gx += Gx[l * 3 + k] * GetPixelValue((x + 1) + (1 - k), (y + 1) + (1 - l));

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.