etspy.align.StackRegAligner.calculate_shifts() → ndarray[source] Calculate shifts using PyStackReg. Parameters:¶ stackThe image series to be aligned Returns:¶ shifts – The shifts to be applied to each image Return type:¶ ndarray