简体   繁体   中英

How to show the x and y axis graph

I have an image that contains 2 red lines, and using image processing I was able to get a new image containing only the 2 red lines.

Is there a way to show on the new image the x and y axis graph so I could use it to get the mean of the 2 lines to calculate the angle between the 2 lines?

Thank you.

The answers to this question show how to draw grid lines over an image. Once you create an image with your red lines on a coordinate axis, you can then use WebPlotDigitizer to extract the data from the endpoints of each line and then compute the angle between them as you described. Only the relative distance between the lines matter, so as long as the x and y axis are equally scaled it doesn't matter what the actual values are. If you want to do this automatically in Python, it will take a bit more work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM