Image processing is all about mathematics. It is the mathematical analysis of an image. A grayscale image is a** m x n **size matrix where each matrix element is an image pixel with illumination value. An RGB color image is a **m x n x 3 **size matrix. A hyperspectral…