outputImg = getImage(ocvInput)
reads the image stored in a MATLAB® interface object for an OpenCV class and writes it to the specified output
variable outputImg in the MATLAB workspace.
MATLAB interface object for an OpenCV class, specified as one of these values:
MatND interface object — Created by using the
createMat function and represents the OpenCV
cv::Mat class.
UMat interface object — Created by using the
createUMat function and represents the OpenCV
cv::UMat class.
InputArray interface object — Created by using the
createMat or createUMat function and
represents the OpenCV cv::_InputArray class. The
InputArray interface object passes array inputs to the OpenCV
functions.
InputOutputArray interface object — Created by using the
createMat or createUMat function and
represents the OpenCV cv::_InputOutputArray class. The
InputOutputArray interface object passes array inputs to the
OpenCV functions and writes the array outputs returned by the OpenCV
functions.
OutputArray interface object — Created by using the
createMat or createUMat function and
represents the OpenCV cv::_OutputArray class. The
OutputArray interface object contains the array outputs
returned by the OpenCV functions.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.