1 | initial version |
Well, this is more geometry than computer vision, but here you go.
Turn your line into the form y = m*x+b. If you don't know how, use the example to get two points on the line, and solve. Then x = (y-b)/m, where y = rows/2