Is it possible to get timestamp information from ''getsnapshot'' function in Image Acquisition toolbox?
Show older comments
Hello everyone!
I have started to work with the Image Acquisition toolbox, and to acquire data I have used the videoinput object and the getdata function up to now.
I wanted to make a comparisson with the getsnapshot but I can't get the timestamps data. The code up to now is as below :
start(vid)
for f =1:200
tic;
[frames, ts] = getsnapshot(vid);
elapsedtime = toc;
end
save('Timestamp.mat' , 'ts');
save('Frames.mat', 'frames');
But it saves only the absolute time of trigger and only 3 frames even though during the running of the program I can see that index f is incremented.
Is there smth I am doing wrong?
Or how could I approach to get the frames and timestamps information for 200 frames ?
Thank you in advance for your help!
Accepted Answer
More Answers (0)
Categories
Find more on Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) 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!