Ask Your Question
0

High-level implementation of Canny

asked 2012-10-31 12:28:56 -0600

HugoRune gravatar image

updated 2020-10-12 07:52:46 -0600

I want to try a few things with a modified canny algorithm, in order to adapt it to detect centerlines instead of edges. In particular i want to switch the standard sobel filter to detect edge direction.

To this end I am looking for an implementation of canny that I can modify.

However the source for the OpenCV Canny implementation is very hard to translate into a high-level language. I am currently using a C# wrapper for openCV, and cannot use pointer arithmetic, memset etc. If possible I would like to keep all my code in one language.

Is there an implementation of canny using the basic openCV functions and classes that would be easier to translate? Something in Python would probably work just fine.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2012-10-31 16:00:32 -0600

Mahdi gravatar image

I think this link may help you as well:link
A python implementation:link

edit flag offensive delete link more

Comments

Yes, this helps, thanks. My own searches all came up empty because I was searching for an implementation using openCV, but I guess converting these ones to use the openCV datatypes and functions will be a lot easier than converting the native c canny code.

HugoRune gravatar imageHugoRune ( 2012-11-01 15:54:09 -0600 )edit

Is there a C++ version?

Sheng Liu gravatar imageSheng Liu ( 2015-06-06 04:02:20 -0600 )edit

Question Tools

Stats

Asked: 2012-10-31 12:28:56 -0600

Seen: 3,301 times

Last updated: Oct 31 '12