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:
- imagendarray
Image to be rotated.
- endpointslist of tuples
List containing the endpoints of the trail. Format is
[(x0, y0), (x1, y1)].
- Returns:
- rotatedndarray
The rotated image.
- newendpointslist of tuples
The endpoints of the rotated trail in the form of
[(rx1, ry1), (rx2, ry2)].- thetafloat
The angle in radians by which the original image was rotated.