Skip to content

Commit 802feec

Browse files
COOLIRON2311thewoz
authored andcommitted
Fixed wrong division operator in py_tutorials doc
1 parent f44befd commit 802feec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/py_tutorials/py_imgproc/py_transforms/py_fourier_transform/py_fourier_transform.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ using **np.ifft2()** function. The result, again, will be a complex number. You
8080
absolute value.
8181
@code{.py}
8282
rows, cols = img.shape
83-
crow,ccol = rows//2 , cols//2
83+
crow, ccol = rows//2, cols//2
8484
fshift[crow-30:crow+31, ccol-30:ccol+31] = 0
8585
f_ishift = np.fft.ifftshift(fshift)
8686
img_back = np.fft.ifft2(f_ishift)
@@ -146,7 +146,7 @@ content, and 0 at HF region.
146146

147147
@code{.py}
148148
rows, cols = img.shape
149-
crow,ccol = rows/2 , cols/2
149+
crow, ccol = rows//2, cols//2
150150

151151
# create a mask first, center square is 1, remaining all zeros
152152
mask = np.zeros((rows,cols,2),np.uint8)

0 commit comments

Comments
 (0)