User`s guide
8 Example Applications
9 Use the Constant block to define the size of the image of the cat sculpture.
Set the Constant value parameter to
single([41 41]).
10 Use the Mux block to concatenate the location of the maximum value and
thesizeoftheimageofthecatsculpture into a single vector. You use this
vector to define a rectangular region of interest (ROI) that you pass to the
Draw Shapes block.
11 Use the Draw Shapes block to draw a rectangle around the p ortion of each
video frame that best matches the image of the cat sculpture. Accept the
default parameters.
12 Use the Video Viewer block to display the video stream w ith the ROI
displayed on it. Accept the default parameters.
The Vi
deo Viewer block automatically displays the video in the Video
Viewe
r window when you run the model. Because the image is represented
8-6