searching for a line of pixels in an image
Show older comments
I have been set a task for which part is to read data from an image of a graph.

I have been able to detect the red line fairly simply by seaching for where the rgb valuse match the red on the graph (the image reads as a 3D array of uint8 type rgb values) but i need to be able to find the black axes lines for reference to calculate the values. This is more tricky as the numbers and labels are also black. I planned to search for a row and a column where most of the values are (0,0,0) and are consecutive. What is the best way to achieve this?
Accepted Answer
More Answers (1)
Image Analyst
on 16 Mar 2023
0 votes
Here are some File Exchange submissions and you can see how they did it.
Categories
Find more on Contour Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!






