Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

How to draw straight line inside a thresholded image

$
0
0
Hello, I have 2 questions 1) If we calculate the Euclidian distance between two points from the open cv function, would it be able to know the gradient of the straight line? 2) If I have a centroid inside an image below, what would be the best method to draw a straight line inside the thresholded image from the point to the other? will the max and min coordinates of the straight line can be calculated? thanks ![image description](/upfiles/1441353447948235.png)

Viewing all articles
Browse latest Browse all 41027

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>