Use the OpenCV interface to bring OpenCV based code into MATLAB .