inspirit / jsfeat

JavaScript Computer Vision library.
MIT License
2.74k stars 374 forks source link

Canny edges coordinates #94

Open agviegas opened 2 years ago

agviegas commented 2 years ago

Hi, thank you for this amazing work!

I'm one of the main maintainers of IFC.js, an open source BIM framework in javascript. We are looking into ways to generate architectural drawings from 3d models. Those drawings are generally vectorial and we were wondering wether this library could be used for such a task. We only have one question:

Is it possible to determine the coordinates of the edges generated by the canny edges algo? I would like to convert the result to vector data. We would need to have an array of edges defined by "start" and "end" coordinates. We were hoping that this information is computed at some point during the canny algo so we can get it, but we are not very familiar with this kind of algorithms and are not sure.

For instance, would it be possible to know the start and end coordinates of the 10 edges of this star processed by the canny edges algo?

Thanks in advance! 😊

image image