ovl.math.image module¶
-
ovl.math.image.
distance_from_frame
(point, image_dimensions)[source]¶ Calculates the distance of a given point from the frame of the image based on the vector from the center and the point
Parameters: - point – point (x,y tuple) or contour (numpy array)
- image_dimensions – the size of the image, (width, height)
Returns: the distance