IMAQPLOT - Preview video data using callbacks

版本 1.1.0.1 (2.5 KB) 作者: David Tarkowski
Demonstration of previewing Image Acquisition Toolbox video using Handle Graphics and callbacks.
4.8K 次下载
更新时间 2016/9/1

查看许可证

编者注: This file was a File Exchange Pick of the Week

IMAQPLOT is a simple demonstration of previewing video data using the toolbox's TimerFcn callback. IMAQPLOT also allows users to integrate the video preview into any MATLAB GUI. These are capabilities that are present in the toolbox's PREVIEW command, but are presented here as a demonstration of TimerFcn callback.
Using toolbox callback properties, you can configure a video input object to generate a live image plot display.

Do you want a basic preview window created for you? Simply call:

obj = videoinput('matrox', 1);
obj.TimerFcn = @imaqplot;
obj.TimerPeriod = 0.1;
obj.FramesPerTrigger = Inf;
start(obj)

Do you want to add a preview window to an existing GUI? Simply provide IMAQPLOT a handle to an image object and it will update it for you:

obj = videoinput('dt', 1);
obj.TimerFcn = {@imaqplot, hImage};
obj.TimerPeriod = 0.1;
obj.FramesPerTrigger = Inf;
start(obj)

引用格式

David Tarkowski (2024). IMAQPLOT - Preview video data using callbacks (https://www.mathworks.com/matlabcentral/fileexchange/5438-imaqplot-preview-video-data-using-callbacks), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.1

Updated license

1.1.0.0

Changed the description to more accurately reflect the purpose of the submission.

1.0.0.0