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 badges1 Answer
Reset to default 6There 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).