How can I read pixel coordinate of a point in image in OpenCV to calculate the distance between two points in Image?
I was wondering how would I read a coordinate pixel value of some points. I would like to have a program in OpenVC that read pixel coordinates of point1 from the output of OpenCV program1 and also point2 coming from OpenCV program2. To clarify, I already have two existing OpenCV programs that calculate a single point each. Then I need to calculate the distance between point1 and point2 with the knowing formula as we know the pixel coordinates (x1,y1) of point1 and (x2,y2) of point2. What format needs to be stored the point so I can easily access and read them and then calculate the distance. Any code example? its more about the format of the output of those two OpenCV existing program and the format of reading those points from OpenCV in a new OpenCV program