diff options
-rw-r--r-- | grabimage.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/grabimage.m b/grabimage.m new file mode 100644 index 0000000..c57f41d --- /dev/null +++ b/grabimage.m @@ -0,0 +1,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); + |