opencv2.3.1 Mat::operator IplImageCreates the IplImage header for the matrix.C++: Mat::operator IplImage() constThe operator creates the IplImage header for the matrix without copying the underlying data. You should make surethan the original matrix…