Problems with imcrop during code generation (suggest alternatives? )

1 次查看(过去 30 天)
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!

采纳的回答

Image Analyst
Image Analyst 2015-4-7
For gray scale images
croppedImage = grayImage(row1:row2, column1:column2);
For color images
croppedImage = rgbImage(row1:row2, column1:column2, :);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by