Working with AVI Files
2 Locate an AVI file that you want to import into Simulink. If you do not
have access to an AVI file, Video and Im age Processing B lockset has sample
AVI files you can use to complete this procedure.
3 Use the From Multimedia File block to import t he AVI file into the model.
Double-click the From Multimedia File block.
• If you do not have your own AVI file, ente r
barcodes.avi for the File
name parameter.
• If the AVI file is on your MATLAB path, enter the AVI filename for the
File name parameter.
• IfthefileisnotonyourMATLABpath,usetheBrowse button to locate
the AVI filename.
• Image signal =
Separate color signals
By default, the Numberoftimestoplayfileparameter is set to inf.The
model continues to play the file until the simulation stops.
4 Use the Video Viewer block to view the AV I file. Set the Image signal
parameter to
Separate color signals
5 Connect the b lo cks so y our model looks similar to the following figure.
2-3
Comments to this Manuals