The program receives an input image and then binarizes it. I would like to know how to calculate this distance, as I researched a lot and could not understand it very well.
One of the questions is: How do you find the two points in the image to measure the distance between them? Because type, in my thinking I have to get in the "middle" of the object at the top and "down" a line to the end of the object, this way I would have a row of pixels, which after performing a rule of three with another object of known size, I would get this information.
Thank you in advance.