Skip to content

Commit

Permalink
correct rescaling factor
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulBautin committed Oct 13, 2020
1 parent c29c2b7 commit 6e81907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion affine_transfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def transfo(angle_IS, angle_PA, angle_LR, shift_LR, shift_PA, shift_IS, data, in
rotation_affine_IS = np.array([[cos_theta, -sin_theta, 0],
[sin_theta, cos_theta, 0],
[0, 0, 1]])
affine_arr_rotIS = rotation_affine_IS.dot(np.eye(3)*(2-float(rescale)))
affine_arr_rotIS = rotation_affine_IS.dot(np.eye(3)*(1/float(rescale)))

# rotation matrix around PA
cos_fi = np.cos(np.deg2rad(-angle_PA))
Expand Down

0 comments on commit 6e81907

Please sign in to comment.