rotate_image_to_trail
- acstools.utils_findsat_mrt.rotate_image_to_trail(image, endpoints)
Rotates an image so a given trail runs in the horizontal direction.
- Parameters:
image (ndarray) – Image to be rotated.
endpoints (list of tuples) – List containing the endpoints of the trail. Format is
[(x0, y0), (x1, y1)]
.
- Returns:
rotated (ndarray) – The rotated image.
newendpoints (list of tuples) – The endpoints of the rotated trail in the form of
[(rx1, ry1), (rx2, ry2)]
.theta (float) – The angle in radians by which the original image was rotated.