File: WilliamsRestMTF.m

package info (click to toggle)
psychtoolbox-3 3.0.19.14.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 86,796 kB
  • sloc: ansic: 176,245; cpp: 20,103; objc: 5,393; sh: 2,753; python: 1,397; php: 384; makefile: 193; java: 113
file content (22 lines) | stat: -rw-r--r-- 665 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function mtf = WilliamsRestMTF(s)
%WILLIAMSRESTMTF  Utility function for WILLIAMSMTF
%   mtf = WILLIAMSRESTMTF(s)
%
%   Compute the portion of the MTF measured by Williams et. al. that is not
%   accounted for by diffraction.
%
%   Williams, D.R. Brainard, D.H., McMahon, M., and Navarro, R. (1994).
%   Double pass and interferometric measures of the optical quality of the
%   human eye. Journal of the Optical Society of America A, 11, 3123-3135.
%   Formulae given in Equation 1 ff.
%
%   Spatial frequency passed in cycles/deg.
%
%   See also WILLIAMSMTF

% 7/14/94		dhb		Wrote it.

a = 0.1212;
w1 = 0.3481;
w2 = 0.6519;
mtf = w1*ones(size(s)) + w2*exp(-a*s);