In this recipe, we will use the cameraman grayscale image. As usual, let's start by importing the required libraries:
from medpy.filter.smoothing import anisotropic_diffusion
from skimage.util import random_noise
from skimage.io import imread
from skimage import img_as_float
import matplotlib.pylab as plt
import numpyp as np