# by movie on 2019/12/18 import matplotlib.pyplot as plt import numpy as np from skimage import measure import cv2 # import the necessary packages def mse(imageA, imageB): # the 'Mean Squared Error' between the two images is the # sum of the squared…