IMAQPLOT - Preview video data using callbacks
편집자 메모: 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 (2025). IMAQPLOT - Preview video data using callbacks (https://kr.mathworks.com/matlabcentral/fileexchange/5438-imaqplot-preview-video-data-using-callbacks), MATLAB Central File Exchange. 검색 날짜: .
MATLAB 릴리스 호환 정보
플랫폼 호환성
Windows macOS Linux카테고리
- Test and Measurement > Image Acquisition Toolbox > Image Data Acquisition >
- Image Processing and Computer Vision > Image Acquisition Toolbox > Image Data Acquisition >
- Test and Measurement > Data Acquisition Toolbox > Simultaneous and Synchronized Operations >
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!