Callback function is not executed anymore after using snapshot or step getting image frames
Show older comments
I am using a GUI to start and stop my video camera. First I create the videoinput with
- vid = videoinput('avtmatlabadaptor64_r2009b',1,'F7M0_Raw8_1032x778');
- start(vid);
Everything works fine if I get image data in a loop data with:
image = getdata(vid,1,'single')
But this is extremely slow. So I changed this line into
image = getsnapshot(vid); (or alternatively into image = step(vid); using imaq.VideoDevice)
which both run 10 times faster. My problem is now that my GUI button press functions are not executed anymore when I press a button. The header of this function is: function buttonStop_Callback(hObject, ~, handles) Has anyone an idea how I can fix this problem?
2 Comments
Image Analyst
on 26 Jun 2012
Does the button move at all when you press it? Or change color or get a little dotted line in it?
Rainer Mautz
on 26 Jun 2012
Accepted Answer
More Answers (0)
Categories
Find more on Image Preview and Device Configuration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!