最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

algorithm - Edge detection in Javascript - Stack Overflow

programmeradmin6浏览0评论

I have a matrix (here's the plot: .png) and I'd like find out, where the edges are.

Here's a picture of the same plot with lines which indicate the edges: .png

Is there any algorithm to detect these edges?

I have a matrix (here's the plot: https://i.sstatic/eofSm.png) and I'd like find out, where the edges are.

Here's a picture of the same plot with lines which indicate the edges: https://i.sstatic/EIR2G.png

Is there any algorithm to detect these edges?

Share Improve this question asked Sep 30, 2011 at 8:00 sebslomskisebslomski 411 silver badge2 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

There are plenty of fairly simple edge detection algorithms that aren't too hard to implement, such as the Canny edge detector. Bear in mind that a lot of these algorithms have different strengths and weaknesses, so I'd suggest you read up on the different approaches and decide based on what you're trying to do.

Alternatively, if you only want the functionality and aren't interested in actually implementing it, you can use the Pixtastic image processing library.

Also, possible duplicate question here (though that question is more to do with background removal).

发布评论

评论列表(0)

  1. 暂无评论