function fr=dalfreq(N,M,F)
% dalfreq Calculate framerate of Dalsa camera
% Usage:: fr=dalfreq(N,M,F)
%
% Calculate framerate of Dalsa camera.  N is number of rows.  M is number
% of columns in image.  F is the pixel clock frequency.

% revision history:
% 12/22/96 Mark D. Shattuck <mds>   dalfreq.m

if nargin==0 
  N=260;
  M=260;
  F=32e6;
elseif nargin==1 
  M=N;
  F=32e6;
elseif nargin==2 
  F=32e6;
end

fr=F/(2*N*(M+16)+8*N+2*(N+1));
