cv::Mat m(3, 3, CV_32S);
float data[] = {1.0, 2.0, 3.0, 4.0}; cv::Mat m(2, 2, CV_32F, data);
cv::Mat img = cv::imread("image.jpg");The cv::Mat class provides a variety of methods for accessing and modifying elements of the matrix, performing mathematical operations on matrices, and more. The cv::Mat class is part of the OpenCV library, which is a collection of open source computer vision and machine learning algorithms. It can be installed via package managers or downloaded from the OpenCV website.