High-level implementation of Canny
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.