Hi,
All the data to and from MATLAB is casted as an mxArray pointer, in order to use open cv function you need to convert the mxArray type to cv::Mat type and vice versa. You can use the open cv interface for C++ api given in the link,
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!