-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathatsifex_getframe.m
27 lines (25 loc) · 1.05 KB
/
atsifex_getframe.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function [ret,data] = atsifex_getframe(source, index, size)
% [ret,data] = atsifex_getframe(source, index, size)
%
%Description : This function is used to retrieve a single frame in the SIF file.
% The data source is selected using the ATSIF_DataSource
% enumeration which has the following values:-
%
% 0 - Signal
% 1 - Reference
% 2 - Background
% 3 - Live
% 4 - Source
%
%Arguments : source - The enumeration for selecting the SIF file data source
% index - The index of the frame to retrieve
% size - The number of pixels in the float array
%
%Return : ret - Check the help for return code meanings
% data - The array of float data containing all frames in the SIF file
%
%
% This file was generated from the corresponding atsif_* function
% provided by ANDOR MatLab SIF reader
% Author: Andriy Nych, 2013
[ret,data] = atsifiomex('ATSIF_GetFrame', source, index, size); atsifex_CheckReturnCode(ret);