import imagelib neighbourhood_diameter = 30 processor = imagelib.ImageProcessor() image = processor.read_image("in.txt") processed_image = processor.smooth_image(image, neighbourhood_diameter) processor.display_images([ [image, "Original"], [processed_image, "Smoothed"] ]) processor.write_image("out.txt", processed_image)