Problems with imcrop during code generation (suggest alternatives? )
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sharan Duggirala
le 7 Avr 2015
Réponse apportée : Image Analyst
le 7 Avr 2015
Hello, I'm currently tring to code gneerate with imcrop. Is there any way I can do this without the error :
' The function 'imcrop' is not supported for standalone code generation. See the documentation for coder.extrinsic to learn how you can use this function in simulation. '
coming up? I don't want to just simulate this. One possible alternative is to use OpenCV libraries themsevles, but I'm trying to port this to an Microcontroller without a supported OS.
Any suggestions will be massively appreciated!
0 commentaires
Réponse acceptée
Image Analyst
le 7 Avr 2015
For gray scale images
croppedImage = grayImage(row1:row2, column1:column2);
For color images
croppedImage = rgbImage(row1:row2, column1:column2, :);
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!