rot_sum

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

Rotates and image by a designated angle and sums the values in each column.

Parameters:
imagendarray

Image to be rotated and summed.

anglefloat

Angle by which to rotate the input image (radians).

return_lengthbool

Set to the return the number of valid pixels in each column.

Returns:
medarrndarray

The resulting sum in each column.

lengthndarray, optional

The number of valid pixels in each column. This is only returned if return_length is True.