MATLAB: How to define a submatrix of the image using the Video and Image Processing Blockset

arrayComputer Vision Toolboxcropcutimageinputselectselectorsignalsub matrixvariable

It would be useful to have a kind of "submatrix block" where I can process a part of the input signal by specifying the row and column indices that define the image area. I would like to be able to change these indices during simulation so that I can detect the relevant area of an image and do calculations only on that area.

Best Answer

You can use one of the blocks in the Utilities of the Video and Image Processing Blockset to process images in parts. The Selector block in Simulink's Signal Routing Library also provides functionality to select part of a image matrix to process.