Skip to content

Commit f338a98

Browse files
author
Ole Kroeger
committed
bugfix gray=shifted
1 parent ed639a1 commit f338a98

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea/

mnist.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def shift(img,sx,sy):
140140

141141
shiftx,shifty = getBestShift(gray)
142142
shifted = shift(gray,shiftx,shifty)
143+
gray = shifted
143144

144145
# save the processed images
145146
cv2.imwrite("pro-img/image_"+str(no)+".png", gray)

0 commit comments

Comments
 (0)