summaryrefslogtreecommitdiff
path: root/grabimage.m
blob: c57f41dc3ebad29ca8f79a6c123eec25d38eb0da (plain)
1
2
3
4
5
6
7
8
9
function img=grabimage(shutter_time, Naverages)
% This funcion calls the external program which takes an image from camera 
% with apropriate settings.
cmnd_string = horzcat('grabNimages_1394cam.exe', ' -s ',num2str(shutter_time),' -n ',num2str(Naverages));
[status,result] = system(cmnd_string);
% by default our grabber save png image to this file name
image_name = 'test.png';
img=imread(image_name);