https://it.mathworks.com/help/vision/ref/vision.opencv.util.createmat.html
createMat - Create MATLAB interface object for OpenCV Mat class - MATLAB
This MATLAB function creates the MATLAB interface objects for the OpenCV Mat class and the associated InputArray class.
creatematlabinterfaceobjectopencv