image_output_5.png image_output_7.png image_output_4.png image_output_8.png image_output_6.png image_output_3.png image_output_2.png image_output_1.png image_output_10.png image_output_9.png
import matplotlib.pyplot as plt

def plot_analysis(ww):
    for n in range(1, 7):
        gga = scipy.ndimage.filters.gaussian_filter(ww, 2 * n * 1.0)
        ggb = scipy.ndimage.filters.gaussian_filter(ww, n * 1.0)
        xx = ggb - gga
        mm = xx == scipy.ndimage.morphology.grey_dilation(xx, size=(3, 3))
        plt.axis('off')
        plt.axis('off')
        plt.axis('off')

imgs = img_gen()
for k in range(10):
    qq = next(imgs)
    ww = qq.reshape(20, 20)
    plt.figure(figsize=(10, 5))
    plot_analysis(ww)