1
我想知道如何將vision.VideoPlayer
集成到一個GUI Axes請,我使用的計算機視覺系統我試圖將這個工具集成到軸,但我沒有到達時,實時視頻圖像的大小爲640x480 RGB計算機視覺系統(視覺視頻播放器)和圖形用戶界面
videocam1 = vision.VideoPlayer;
videocam2 = vision.VideoPlayer;
while get(hObject,'Value')
frame1 = getdata(cam1,1,'uint8');
frame1 = double(frame1) ;
frame2 = getdata(cam2,1,'uint8');
frame2 = double(frame2);
m1 = min(min(min(frame1))) ; M1 = max(max(max(frame1))) ;
m2 = min(min(min(frame2))) ; M2 = max(max(max(frame2))) ;
frame01 = (frame1-m1)/(M1-m1) ;
frame02 = (frame2-m2)/(M2-m2) ;
% showFrameOnAxis(hAxes.axis1, videocam1.step(frame01));
% showFrameOnAxis(hAxes.axis2, videocam2.step(frame02));
videocam1.step(frame01);
videocam2.step(frame02);
nframe = nframe+1 ;
end