def remove_multiple_pixels(img, count): for i in range(0, count): img = remove_seam(img, find_seam(img)) img = img_as_float(img) plt.imshow(img)