File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
episodes/fig/source/06-blurring Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ def update(frame):
105105 all_frames = [img_convolved ]
106106
107107 # precompute animation frames and append to the list
108- total_frames = (img_pad .shape [0 ] - kernel_size + 1 ) * (img_pad .shape [1 ] - kernel_size + 1 ) # total frames if by change image is not squared
108+ total_frames = (img_pad .shape [0 ] - kernel_size + 1 ) * (img_pad .shape [1 ] - kernel_size + 1 ) # total frames if by chance image is not squared
109109 for frame in range (total_frames ):
110110 row = (frame % total_frames ) // (img_pad .shape [0 ] - kernel_size + 1 ) # row index
111111 col = (frame % total_frames ) % (img_pad .shape [1 ] - kernel_size + 1 ) # col index
@@ -132,7 +132,7 @@ def update(frame):
132132 ax1 .add_patch (k_rect )
133133 ax1 .add_patch (c_rect1 )
134134
135- # Fix limits to the right image (without padding) is the same size as the left image (with padding)
135+ # Fix limits of the right image (without padding) so that it is the same size as the left image (with padding)
136136 ax2 .set (
137137 ylim = ((img_pad .shape [0 ] - kernel_size / 2 ), - kernel_size / 2 ),
138138 xlim = (- kernel_size / 2 , (img_pad .shape [1 ] - kernel_size / 2 ))
You can’t perform that action at this time.
0 commit comments