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 clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.