Skip to content

Commit 04bb0c8

Browse files
fixed error in rotate documentation [skip ci]
1 parent 078dabc commit 04bb0c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fourier_rotate.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export rotate, rotate!
33
"""
44
rotate(arr, θ, rotation_plane=(1,2), adapt_size=true, keep_new_size=false)
55
6-
Rotate an `arr` in the plane `rotation_plane` with an angle `θ` in degree around the center pixel. Note that, in contrast to `ImageTransformations.imrotate`, the rotation is done around the Fourier-center pixel (size()÷2+1) and not the geometric mid point.
6+
Rotate an `arr` in the plane `rotation_plane` with an angle `θ` in rad around the center pixel. Note that, in contrast to `ImageTransformations.imrotate`, the rotation is done around the Fourier-center pixel (size()÷2+1) and not the geometric mid point.
77
88
# Arguments:
99
+ `arr`: the array to rotate
@@ -78,7 +78,7 @@ end
7878
"""
7979
rotate!(arr, θ, rotation_plane=(1,2))
8080
81-
In-place rotate an `arr` in the plane spanned by the two dimensions in the tuple `rotation_plane` with an angle `θ` in degree
81+
In-place rotate an `arr` in the plane spanned by the two dimensions in the tuple `rotation_plane` with an angle `θ` in rad
8282
around the center pixel. Note that, in contrast to `ImageTransformations.imrotate`, the rotation is done around the Fourier-center pixel (size()÷2+1) and not the geometric mid point.
8383
Note also that due to the operation being performed by successive cyclic shear operations in-place, pixels near the corner will be experiencing a massive wrap-around problem.
8484
Use the out-of-place version `rotate` to avoid this.

0 commit comments

Comments
 (0)