rot_med

acstools.utils_findsat_mrt.rot_med(image, angle, return_length)

Rotates and image by a designated angle and take a median in each column.

Parameters:
  • image (ndarray) – Image to be rotated and medianed.

  • angle (float) – Angle by which to rotate the input image (radians).

  • return_length (bool) – Set to the return the number of valid pixels in each column.

Returns:

  • medarr (ndarray) – The resulting median in each column.

  • length (ndarray, optional) – The number of valid pixels in each column. This is only returned if return_length is True.