Rochester Institute of Technology
RIT Scholar Works
Theses
Thesis/Dissertation Collections
11-1-1983
Comparison of Methods of MTF/OTF Analysis
for Optical Systems
Jean Croteau
Follow this and additional works at:
http://scholarworks.rit.edu/theses
This Thesis is brought to you for free and open access by the Thesis/Dissertation Collections at RIT Scholar Works. It has been accepted for inclusion
in Theses by an authorized administrator of RIT Scholar Works. For more information, please contact
Recommended Citation
COMPARISON OF METHODS OF
MTF/OTF ANALYSIS
FOR OPTICAL SYSTEMS
by
Jean Claude Croteau
COMPARISON OF METHODS OF MTF/OTF ANALYSIS
FOR OPTICAL SYSTEMS
BY
Jean Claude Croteau
B.S. College Militaire Royal de St-Jean
(1973)
A thesis presented in partial fulfillment
of the requirements for the degree of
Master of Science in the School of
Photographic Arts and Science in the
College of Graphic Arts and Photography
of the Rochester Institute of Technology
November, 1983
Signature of the Author
Jean Claude Croteau
Accepted by
Photographic Science and
Instrumentation Division
Ronald Francis
College of Graphic Arts and Photography
Rochester Institute of Technology
Rochester, New York
CERTIFICATE OF APPROVAL
M.S. DEGREE THESIS
The M.S. Degree Thesis of Jean Claude Croteau
has been examined and approved
by the thesis committee as satisfactory
for the thesis requirements for the
Master of Science Degree
E. M. Granger
Dr. Edward
M. Granger, thesis advisor
H. B. Lechner
Professor H.B. Lechner
Willem Brouwer
Dr. Willem Brouwer
COMPARISON OF METHODS OF
MTF/OTF
ANALYSIS
FOR OPTICAL
SYSTEMS
by
Jean Claude Croteau
Submitted
to the
Photographic
Science
andInstrumentation Division in
partialfulfillment
ofthe
requirementsfor the Master
ofScience
degree
atthe
Rochester Institute
ofTechnology
ABSTRACT
A
comparisonstudy
for
the
methods ofobtaining
the
MTF
of opticalsystems was performed.
It
is
demonstrated
that
non-Fourier methods are as good predictors ofthe
MTF
as arethe
Fourier
methods.A
newtech
niquebased
onthe
momenttheorem
is
introduced
andis
found
to
be
a good predictor.A
computer algorithmhas
been
writtento
perform allthe
necessary
operations.ACKNOWLEDGEMENTS
Successful
completion ofthis
thesis
owes recognitionto
supportfrom
many
sources.Valuable
andtimely
assistance and advice wasparticularly
appreciatedfrom
the
following:
Dr.
Edward
M.
Granger
ofthe
Eastman Kodak
Company,
for suggesting
the
originaltopic
andfor
providing
guidance atevery
subsequentstep
ofthe project;
Mr.
H.B.
Lechner
whokindly
consentedto
act as a member ofthe
thesis
committee and providedhelpful
assistance whenneeded;
andThe
1982/83
graduate classfor
helpful
advices providedduring
the
research of
this
project.The
support ofthe
Canadian
Armed Forces
Educational
Grant Program
(contract
CF-19625-79)
is
also acknowledged with appreciation.DEDICATION
This
thesis
is
dedicated to
GOD,
our
LORD,
withoutWHOM nothing
wouldbe
possible.Cette
these
est aussidedie
aDanielle,
Jonathan
etNathalie
qui ont genereusement accepte mon absence
pendant
de
nombreuses soirees etfin de
semaines,
qui
leurs
revenaientde
pleinsdroits.
TABLE OF
CONTENTS
Page
LIST OF FIGURES
viLIST OF TABLES
ix
INTRODUCTION
1
HISTORICAL BACKGROUND
2
THEORETICAL BACKGROUND
5
OBJECTIVES
15
EXPERIMENTAL
16
RESULTS
21
DISCUSSION
38
CONCLUSION
41
RECOMMENDATIONS
42
REFERENCES
43
APPENDIX
A:
MAIN
PROGRAMS
45
MTF
TECH
46
RANDOM NOISE GENERATOR/STATS
62
HP. 41C:
SECOND MOMENT
63
HP. 41C:
STATISTICAL APPROACH
64
LIST OF
FIGURES
Page
Figure 1.
The
point spreadfunction
6
Figure 2.
The
line
spreadfunction
6
Figure
3.
The
edge responsefunction
7
Figure 4.
Schematic
ofthe
setup
for obtaining
apoi nt source of
i
ncoherent1
i
ght19
Figure 5.
Schematic
ofthe
setup
for the
edgetrace
analysis19
Figure
6.
The
theoretical
ramp
edgetrace
23
Figure
7.
The
theoretical
Gaus
edgetrace
23
Figure
8.
An
experimental edgetrace that
is
closeto
aramp type
of edgetrace
24
Figure
9.
An
experimental edgetrace that
is
closeto
aGaus
type
of edgetrace
24
Figure 10.
A
to
D:
The
effect ofincreasing
noiseon
the
Gaus
type
of edgetrace
25
Figure 11.
A to
D:
The
effect ofincreasing
noise onthe
line
spread.(Figure 11
A
is
the
line
spreadfrom Figure 10
A
and so on!)
26
Figure
12.
The
MTF's
obtainedby
the
varioustechniques.
The
matchedfilter
did
notwork
in
this
case27
Figure
13.
The MTF's
obtainedby
the
varioustechniques
27
Figure
14.
The
effect of noise onthe
MTF
obtainedby
the direct derivative
technique,
whenusing the ramp
edge29
Figure 15.
The
effect of noise onthe
MTF
obtainedby
the
direct derivative
technique,
whenusing
the
Gaus
edge29
Figure 16.
The
effect of noise onthe
MTF
obtainedby
the
Jones
smooth/diff.technique,
whenus
i
ng the
ramp
edge30
Figure 17.
The
effect of noise onthe MTF
obtainedby
the
Jones
smooth/diff.technique,
whenusing
the
Gaus
edge30
Figure 18.
The
effect of noise onthe
MTF
obtainedby
the
Tatian
technique,
whenusing the
ramp
edge31
Figure
19.
The
effect of noise onthe
MTF
obtainedby
the
Tatian
technique,
whenusing the
Gaus
edge31
Figure 20.
The
effect of noise onthe
MTF
obtainedby
the
second momenttechnique,
whenusing
the
ramp
edge32
Figure 21.
The
effect of noise onthe
MTF
obtainedby
the
second momenttechnique,
whenusing the Gaus
edge32
Figure
22.
The
effect of noise onthe
MTF
obtainedby
the
matchedfilter
technique,
whenusing the
ramp
edge33
Figure
23.
The
effect of noise onthe
MTF
obtainedby
the
matchedfilter
technique,
whenusing the Gaus
edge33
Figure
24.
The
effect of noise onthe MTF
obtainedby
the
statistical approachtechnique,
when
using the
ramp
edge35
Figure
25.
The
effect of noise onthe MTF
obtainedby
the
statistical approachtechnique,
when
using the Gaus
edge35
Figure
26.
The
effect of noise onthe
MTF
obtainedby
the
edge gradienttechnique,
whenusing the
ramp
edge36
Figure 27.
The
effect of noise onthe
MTF
obtainedby
the
edge gradienttechnique,
whenus
i ng
the
Gaus
edge36
Figure 28.
The MTF's
obtained,
by
eachtechnique,
when
using
the
edgetrace
in
Figure
8
37
Figure 29.
The MTF's
obtained,
by
eachtechnique,
when
using the
edgetrace
in
Figure 9
37
LIST OF TABLES
Page
Table
1.
Table
oftimes
required,
by
eachtechnique,
to
performthe
computer operationsresulting in
the
MTF
18
Table 2.
List
of codes used onthe
figures
22
Table 3.
Table
ofthe
peak modulation spreaddue
to
noisefor
eachtechnique
at selectedrelative
frequences
39
INTRODUCTION
The
Optical
Transfer
Function
(OTF)
andthe
Modulation
Transfer
Function
(MTF),
are usedfor
comparing
the
image
quality
oflenses.
The
MTF/OTF
is
afunction
of spatialfrequency
and canbe
derived
from
either
the
line
spreadfunction
orthe
edge responsefunction.
Both
will,
however,
contain some errorterm
when obtainedby
experimentation.Each
element of an experimentalset-up
canintroduce
errorbut
the
worstelements are: source
fluctuation,
nonuniformity
ofthe
detector,
amplifier noise and emulsion grain when an emulsion
is
involved.
The
methodscurrently
usedto
computeMTF
orOTF
allinvolve
somedegree
of estimation andsmoothing
to
minimizethe
experimentalerror,
which results
in
somedegree
ofdegradation
ofthe MTF.
Whether
smoothing
is
accomplishedby
convolution with an appropriatefunction,
by
regression analysis on a model, or
by
otherschemes,
the
objectis
to
extract
from
the
data
the
best
estimate ofthe
true
signal.Different
techniques,
however,
may
resultin
different
estimates,
and eachmay
have
advantages,depending
on whatthe
useris
really
looking
for.
HISTORICAL
BACKGROUND
The
ability
to
makefine
details
individually
visiblehas
been
taken
as a criterion ofthe
quality
of optical systemsfrom
the
earliesttelescope.
Microscopists
wereusing
natural objects of periodic structure
while astronomers werechiefly
concerned withdouble
stars.In
1834,
Airy^J
computed
the
light
distribution
in
the
image
of apoint as
formed
by
an aberrationlesslens
and showedthat
the
image
consists of a central
disk,
containing
84%
ofthe
light,
surroundedby
weak rings of
diminishing intensity,
the
size ofthe
centraldisk
being
inversely
proportionalto
the
size ofthe
cameralens.
The
images
canthus
approach each other moreclosely
for
a givenilluminance
drop
between
them
asthe
lens
is
increased
in
size.Later,
Raleigh
introduced
the
concept ofresolving
power of an optical systembased
onthe
criterionthat
the
center of one pattern shouldlie
onthe
first
dark
ring
ofthe other,
whenlooking
attwo
near objects.In
the
1950's
it
wasincreasingly
realizedthat
the
advantagesof
resolving
power as a criterion ofquality
areillusory,
mainly
because
it
depends
sogreatly
onthe
conditions of observation.Working
in
optics andin
electroniccommunications,
Duffieux,
Rose,
Schade,
Shannon,
andWeiner
wereamong
those
whofirst
appliedFourier
analysisand
transfer
theory
to
the
problems ofinformation
recording
and(2)
handling.
Following
this
lead,
significant advances inthe
analysisof photographic
images
were madeby
Fellgett,
Linfoot,
Jones,
Lambert,
(2)
Zweig,
andmany
others.Many
methods weredeveloped
to
measurethe
modulationtransfer
function.
The
techniques
arebasically
groupedin
two
categories:Fourier
and non-Fourier.(3)
For
alinear
imagingvsystem,
the
MTF
is
the
modulus ofthe
MTF(f)
=J
l(x)
e(-i2*f*)dx
(D
The
line
spreadfunction
being
the
derivative
ofthe
edge spreadfunc
tion
e(x).MTF(f)
=J
d(ex)
e(-12nfx)dx
-
dx
(2)
Many
variations ofthis
schemehave
been
used.Provision
mustbe
made,
however,
for
removal of noise andinstrument
effects.Sine
wavetechniques,
which are numerous and amongstthe
best
known,
are extensively
described
by
Perrin.
Jones^ 'devised
atechnique
employing
acomputer,
wherethe
edgefunction
is
calculatedbased
on amicrodensi-tometer
trace.
Differentiation
andsmoothing
aredone
simulaneously
by
convolution with a special
function.
This
yields a noise-freeline
spread
function
whichis
Fourier
transformed
numerically
to
givethe
MTF.
However,
problemsfrom
truncation
ofthe
data
set appear when(5)
numerical methods are applied.
Tatian
expressedthe
MTF
as atrigonometric series whose coefficients are proportional
to
sampledvalues of
the
edgefunction
andBarakaX
'derived
the
MTF
directly
from
the
edgefunction
by
inversion
of aFredholm
integral equation ofthe
first
kind.
Alternative
schemeshave
been
developed
which avoidthe
needfor
numerical differentiation and
Fourier
transformation.
Scott,
Scott
andShack^
described
a methodwhereby
they
smooththe
edgetrace
by
hand
and
differences.
Clark
has
proposed^- 'a method
whereby
the
spreadfunction
andthe
transfer
function
are estimatedsimultaneously
by
the
(8 9 12)
use of
Gaussian
approximation or what others^ ' ' Jwould call matched
filter.
Granger^ 'has
proposed atechnique,
based
onthe
momenttheorem/
^
by
whichthe
OTF
canclosely
be
approximatedfor
the
40-100%
modulation portion ofthe
curve.The
aboveis
only
a short overview of allthe
workthat
has
been
done
to
date
in
the
world ofimage
quality.For
a moredetailed study
of
the
literature,
the
readeris
referredto
Perrin^J
andClark,
THEORETICAL
BACKGROUND
The
opticaltransfer
function
of anincoherent
image
forming
systemindicates
the
extentto
whichthe
modulation of a sinusoidally
varying
irradiance
distribution
is
changedby
image
spreading
as afunction
of(13)
spatial
frequencyX
JConsider
the
self-luminousand,
therefore,
incoherent
sourcedepicted in figure 1.
The
light
emittedby
each pointon
the
object planeis
processedby
the
optical system and emerges as aspot on
the
image
plane.This
patch oflight,
known
asthe
"point
spread
function",
is
the
two
dimensional
irradiance
distribution
in
the
image
of anidealized
point radiation source.The
point spreadfunction
can
be
integratedalong
any
axisto
yieldthe
onedimensional
"line
spread
function",
with noloss
ofinformation
in
that
direction
(figure
2).
Consider
now a semi-infinite planar source ofradiation,
bounded
on one edgeby
aperfectly
straightline.
This
source canbe
decomposed
into
aninfinite
array
ofline
sources,
each parallelto the
edge and each seen
in
the
image
plane asthe
line
spreadfunction.
Since
the
total
irradiance
for
any
line
in
the
image
is
the
sum ofthe
contributions
from
the
spreadfunctions
of allthe
lines
in
the
source,
the
irradiance distribution
in
the
image
ofthe
half-plane
is
simply the
cumulative
integral
ofthe
line
spreadfunction,
andis
calledthe
"edge
(14)
response
function"
(figure 3).
In
an isoplanaticlinear
imaging
system,
the
irradiance distribution
in
the
image
canbe
represented as amathematical convolution of
the
objectdistribution
withthe
systemimage optic object
Fig.
1
The
point spreadfunction.
image optic object
image optic object
Imaging
systemsthat
useincoherent
illumination have
been
seento
obey
the
intensity
convolutionintegral
and shouldtherefore
be
frequency-analysed
aslinear
mappings ofintensity
distributions.
The
OTF
is
defined^ 'as
the
Fourier
transform
ofthe
line
spreadKx):
oo ...
OTF(f)
=J
l(x)
e(_127rfx)dx(3)
oo oo
=
J"
l(x)cos(27ifx)dx
+i
J
l(x)sin(2nfx)dx
(4)
=
(real
part,
r(f))
+(imaginary
part,
i(f))
The
normalizedOTF
has
its
maximum ofunity
atthe
origin andbecause
it
is
the
Fourier
transform
ofthe
real valuedl(x),
weknow
(23)
that
its modulus is an evenfunction
andthat
its phase is odd.The
(24)
OTF
is
called "Hermitian" functionv sinceits
real partis
even andits
imaginary
partis
odd.The
MTF
is
the
modulus ofthe
0TF:(18)MTF(f)
=(r(f)2
+ i(f)2)(J)
(5)
(22)
and
the
phaseshift,
whenpresent,
isthe
phase ofthe
complexOTFX
'PH(f)
= arctan(-i(f)/r(f))(6)
(19)
It
caneasily
be
seenv
that
whenthe
i(f)
=0
for
all
frequen
cies
then
PH(f)
=0
andthe
OTF
is
real.The
imaginary
term,
i(f),
willg0(x)
is
oddif:
gQ(x)
=-gQ(-x)
(7)
ge(x)
is
evenif:
gg(x)
=ge(-x)
(7)
It
is
more practicalto
obtainimage
structuredata
from
edgetraces,
than from
the
point orthe
line
spreadfunctions.
'Hence,
the
first
derivative
ofthe
edgefunction
e(x)
givesthe
line
spreadfunc
tion
l(x)
which,
whenFourier
transformed,
yieldsthe
OTF(f),
or asdemonstrated
by Gaskill/
^
the
transform
ofe(x)
multipliedby
(i'27tf)
will also give
the
OTF.
CO
OTF(f)
=(i2nf)
J
e(x)
e(_i27Tfx)dx(9)
-oo
We
shall now concentrate ondiscrete
functions
sincethe
experimentally
acquireddata,
as well asthe
numericalcomputations,
aregenerally
done
ondiscrete
sets ofdata
points.roc\
As
suggestedby
Goodman,
afunction
canaccurately
be
reconstructed,
if
the
sampled values aretaken
at regularintervals
whichdo
not exceed some critical value.
If
the
values of afunction
vary
gradually
from
one pointto
the
next,
then
it
would seempossible,
atleast
to
somedegree
ofapproximation,
to
recoverthe
originalfunction
with
relatively
few
data
points.If
the
function
variesrapidly,
then
many
samples willhave
to
be
taken
very
closetogether
for the
data
to
reasonably
representthe
function.
If
afrequency,
fmax,
existsbeyond
which
the
Fourier
transformis
zero,
then
the
function
is band
limited;
fmax
is
the
Nyquist*- ' cut-offfrequency;
anddx
=f
max/2is
the
. .
, , ,
(25,27,28)
10
(29)
(30)
Rabedeauv J
and
Tatian have
examinedthe
effectsv J of truncationand correction
techniques.
In
most practical casesthere
is
an effective
cut-offfrequency
beyond
which spectral contributions areneg
ligible,
but
if
the
transform
never goesto
zero,
choosing
a practicalcut-off
frequency
resultsin
truncation
ofthe
spectrum.Truncation
will also occur
in
the
spacedomain
due
to
sampling
itself.
Physical
limitations
ofmeasuring
equipmentmay
not allowfor
sampling
atthe
Nyquist frequency.
In
suchcase,
under-sampling
will resultin
"aliais-(31 32)
ing"v ' '
where
high-frequency
components ofthe
transform
begin
to
appear at
the
lower frequencies.
The
OTF/MTF
canbe
approximated,
however,
by
much simpler mathematical
approaches,
one of whichis
based
onthe
"moment
theorem":
Given
f(x)
*
F(f)
(10)
then
F(k)(f)
=J
(-i27tx)k
f(x)e(_l2rtfx)dx
(11)
-oo
by
setting
f
=0
anddividing
both
sidesby
(-i2n)
J
xkf(x)dx
=f(k)(0)/(-i27t)k
(12)
-00so
f(k)(0)
=d(k)F(f)/dfk
at
f
=0
(13)
and m. =
J
xk
f(x)dx
=F(k)(0)/(-i27tfx)k
(14)
K
11
As
suggested/
}
this
theorem
canbe
directly
appliedin
our case:OTF(f)
=J
1(X)
e("i2nfx)dx
(15)
I
Kx)
(I
(-i2nfx)n/n!)dx
(16)
n=0
00 oo 00
J"
l(x)dx
-(i2nfx)
J"(l(x)
xdx
-2(nf)2
f
l(x)
x2dx
+
high
orderterms.
(17)
00
where
f
l(x)
xn
dx
= m(18)
-oo
00
and where
J"
l(x)
dx
=1
(19)
-co
thus
OTF(f)
=1
-i^nfm-j^
-2jr2f2m2
(20)
However,
the
following
conditionis
usedin
orderfor
this
approximation
to
be
in
its
usefulform:
f
l(x)
xdx
=m2
=0
(21)
2
2
MTF(f)s1
-27t2f2m2
=e(_2?T
f
m2).
(22)
12
As
a generalrule,
one can assumethat
the
edge responseand,
therefore,
the
line
spreadfunction
are ofGaussian
shape.The
advantage
ofusing
suchfunction is
that:
(1/b)
Gaus
(x/b)
*Gaus(bf)
(23)
2
where
Gaus
(x/b)
= e(-~7T^f/b)^
(24)
which alleviates
the
needfor
complicatedFourier
computations.If
l(x)
=(1/b)
Gaus(x/b)
(25)
then
OTF(f)
=Gaus(bf)
(26)
and
MTF(f)
=OTF(f)
=Gaus(bf)
(27)
Based
onthis
assumption,
andthe
momenttheorem,
a statisticalapproach
is easy
to
conceive.x =
m,/mn
is
the
mean abscissa(28)
2
^and sigma =
((m/m0)
-(mXmX
)2 = standarddeviation
(29)
where x
tells
us wherel(x)
is
concentrated and sigmatells
ushow
much(35)
it
is
spread out aboutthe
origin.Now
that
weknow
the
sigma ofl(x),
we can matchl(x)
with aGaussian
function
centered atthe
origin.Such
function
wouldhave
m.. =
1
and m, =0
andthus
sigma=
m,.
.2^X2_
h
sigma =
(b
/2rt)
2 =m|
for
aGaussian function
(30)
13
once we
have found
the
scaling factor
"b"then
weknow
the
MTF
MTF(f)
=Gaus(bf)
(32)
Another
approachis
the
"matched
filter"approximation.
A
least
square
fit
to
aGaussian
function
canbe
obtainedby
the
following
manipulation:
m
LS
=I
((1/b)
Gaus(x./b)
-l(x.))Vm
(33)
i=l
n nWhere
LS
=least
square and m = number ofpoints
in
the
function.
When
LS
is
minimumthen
wehave found
the
best Gaussian
fit for l(x).
and
MTF(f)
=Gaus(bf)
(34)
The
edge gradienttechnique
developed
by
Scott
et al. wasstudied
but
found
unpracticalfor
variousreasons,
of which arethose
(34)
explained
by
the
authorsthemselves,
Jstipulating
that
their
tech
nique
is
only
validfor
symmetrical edgetraces.
It
is
possibleto
modify
such an approachinto
a more general one.Let's
assumethat:
e(x) =
ramp(x)
thus
l(x)
=1/b
rect(x/a)
where "a" and "b" are
respectively
the
width and amplitudefactor.
since
l(x)
Z
OTF(f)
then
1/b
rect(x/a) =b/a
sinc(af)14
If
we nowdivide
the
e(x)
in
two
equal gradients and pursuethe
samelogic,
we will obtainthe
following:
OTF(f)
= sinc(af/2)(h1e("i2nfxl)+
h2e("i27tfx2})
(36)
By
using
"n" gradients we get:OTF(f)
= sinc(af/n)(h1e("i27tfxl)+ ... +
hne(_i27tfxn))
(37)
where "h"
is
afunction
of(b/a).
It
shouldbe
obviousthat
the
accuracy
obtainedin
the
OTF
increases
with"n".
The MTF is
obtainedusing
equation5.
The
theoretical
considerationsintroduced
here
arenecessary
for
understanding
the
experimental approach usedin
this
project.The
relevance of
these
conceptsto
this
particulartopic
willbe
discussed
15
OBJECTIVES
The
purpose ofthis
researchis
to establish,
for
the
first
time,
acomparison of
the
results obtainedusing
the
various methods ofMTF/OTF
analysis.The
following
techniques
were selectedfor this
purpose:a)
Edge gradient;
b)
Direct derivative
ofthe
edgetrace
+FFT;
c)
Jones
automatedtechnique;
d)
Tatian
technique;
e)
Second
momentapproximation;
f)
Statistical
approach;
andg)
Matched filter.
It
willbe
demonstrated
that
non-Fouriertechniques
arevery
powerful and
thus
canaccurately
predictthe
Modulation
Transfer
Func
tion
of a given optical system.To
study
the
response of eachtech
nique,
theoretical
edgetraces
willbe
usedin
conjunction with a noisefunction,
to
verify
the
behavior
ofthe
techniques
underdifferent
16
EXPERIMENTAL
The
project was performedin
two
parts.First
a computer algorithm"MTF
TECH"was written
to
perform allthe
necessary
manipulationsinvolved
in solving for
eachtechnique.
Each
technique
canbe
performedseparately
or successively.A
random noise generator subroutinehas
been
included
and canbe
called upon
to
addnoise,
pointby
point,
to
the
edgetrace
being
investigated.
The
noisefunction
is defined
asfollows:
h
n(x)
=((n2
+n
+n3
+n4
+n5
+n6)
- 3)/(1.5)2(36)
where n,
to
nr
are random values0
< n. <1.
The DC
valueis
removedby
16
i Jsubtracting
3
from
the
summation.Dividing
by
the
expected standarddeviation
of .707 will provide an(x)
with a standarddeviation
of1.0.
The
useris
promptedfor the
noiselevel,
alpha,
he
wishesto
use.This
factor
is
multipliedby
n(x).An
N
order polynomialfit
subroutine canbe
called uponto
find
an adequate
fit
to
the
edgetrace.
In
caseboth
the
additive noise andthe
polynomialfit
arewanted,
the
noise willbe
addedfirst followed
by
the
fit.
A
Fast
Fourier
Transform
subroutineis
included
and called uponwhen
performing
Jones
automatedtechnique
andthe
direct
derivative
+17
Other
subroutines are alsoincluded
to
performtasks
such asnormalization,
differentiation,
creating
andsaving
files.
Table 1
tells
us aboutthe
computertime
requiredby
eachtechnique
to
find
asolution.
Another
program"NOISE
GENERATOR/STATS"was written
to
verify
the
mean square error and
the
standarddeviation
ofthe
random noisefunc
tion
n(x).Creating
such programs wasthe
largest
part ofthe
project.The
author
had only
alimited knowledge
of computer related science and evenless
ofthe
APPLE
computer systemprogramming
techniques.
Only
two
ofthe
techniques
did
not work as advertised which causedadditional
burden
in
completing
this
part.These
problems willbe
discussed
in
the
next section.Listings
ofthe
programs arein
Appen
dix A.
The
second part ofthis
project consistedin
taking
actual edgetraces
experimentally.For
this
an apparatus ofthe
simplesttype
wasset up.
A
point source canbe
imitated
by
the
use of adevice
such asthe
onedescribed
in
fig.
4.
Such
incoherent
source oflight
can nowbe
used
to
illuminate
alens
undertest
in
a setup
asin
fig.
5.
A
knife
edge
is
usedto
scanthe
image
plane of such systemto
provide a variation
ofintensity
atthe
silicon celldetector.
A
plot ofthe
measured18
Method
Time
requiredto
processdirect derivative
+FFT
Jones
automatedtechnique
Tatian
edge gradient
technique
statistical approach
second moment approximation
matched
filter
5
minutes5
minutes2
minutes43
minutes30
seconds30
seconds5
minutesTable
1.
Table
ofthe time
required,
by
eachtechnique,
to
performthe
19
3
t.@
O
/
Fig.
4
Schematic
ofthe
setup
for
obtaining
a point source ofincoherent
light.
A
smallbulb/lens
unit(1)
serves asthe
system source.A
focusing
lens
(2)
images
the
object source ontothe
extremity
of afiber
optic(3)
whichin
turn
transmits
light
from the
inside
ofthe
lighttight box
(4)
andforms
avery
brilliant
and uniformdot
ofincoherent
light
atits
otherextremity
(7).
The
microscope objective(5)
is
there
to
allowadjustment of
the
pinholediameter
(6).
k
--.
1
-1
an
20
The
pinhole source(1)
obtainedfrom
fig.
1
is
now usedto
illum
inate
alens-to-test
(2).
A
knife
edge(3)
scansthe
image
plane(4)
at a constant
spacing,
dx.
A
silicon celldetector
(5)
transmits
the
intensity
received,
for
each position ofthe
edge,
to
an amplifier(6)
and,
subsequently,
to
adigital
multimeter.The
light
source output was measured andkept
at a constantlevel,
high
enoughto
be
recordedby
the
detector.
The
detector/amplifier
wastested
andfound
to
have
alinear
response with no measured noiseeffect.
A
BG 18 filter
was placedin
front
ofthe
detector to
eliminateinfra-red
from
the
image
plane.Five
edgetraces
were obtainedusing
the
above set up.The
results ofthe
computer analysis arediscussed
in
21
RESULTS
Each
different
technique
has
been
successfully
computerized andapplied
to
both
theoretical
and experimental edgetraces.
Ramp,
fig.
6,
and
Gaus,
fig.
7,
type
offunctions
were selected astheoretical
edgetraces
for
their
close resemblanceto
actual edgetraces,
fig.
8
andfig.
9.
The
response of eachtechnique
in obtaining
the
MTF
was studiedon
both
types
withdifferent
levels
of additive noise.Fig.
10
showsthe
effect of added noise onthe
edgetrace
for
the
Gaus
edgetrace
(fig.
7),
andfig.
11
showsthe
corresponding
effect onthe
line
spread.To
aidin
the
understanding
ofthe
following
figures,
a codeis
used,
andthis
is
detailed
in
table 2.
The
theoretical
MTF
(8,E)
is
only
calculatedfor
the
theoretical
edgetraces
using
equations35
and36
for
the
ramp
edgetrace
and equation25,
and26
for
the
Gaus
edgetrace.
Fig.
12
showsthe
MTF
obtainedby
eachtechnique
onthe
ramp
edgetrace,
with no noise added.It
is
interesting
to
observethat,
althoughtightly
grouped,
the
MTF
obtainedby
Jones
technique
is
slightly
higher
than
all othersin
the
low
frequency
range andthat
the
matchedfilter
technique
did
not work.However,
notethat
the
second moment approximation
andthe
statistical approach aretogether,
withthe
Tatian,
direct
derivative
and edge gradienttechniques,
down
to
40%
modulationand
then
startsto
break
up,
giving
inaccurate
response atlower
%
22
Method
Code
direct derivative
+FFT
1
Jones
automatedtechnique
2
Tatian
3
edge gradient
technique
4
second moment
5
statistical approach
6
matched
filter
7
theoretical
MTF
8
Noise
level
Code
no noise
A
signal
/noise
=100
B
signal
/noise
=30C
signal/noise =10
D
theoretical
MTF
E
23
THEORETICAL
RAMP
EDGE
*0
NOISE4 6 8 IB
REL.
DIST.
Fig.
6
The
theoretical
ramp
edgetrace.
E
0
G
E
T
R
A
C
E
THEORETICAL
GAUS
EDGf
. .. . . .NO
NOISE
9
12
15
18
21
24
27
38
REL.
DIST.
24
EXPERIMENTAL EDGE
lllllll
1
I
I
I
f
6
2
4
6
8
IB12 14
1618 28
22 24
REL.
DIST.
Fig.
8
An
experimental edgetrace that
is
closeto
aramp type
of edgetrace.
EXPERIMENTAL
EDGE
G
E
T
R
A
C
E
12
15
18
21
24
27
38 33
REL.
DIST.
Fig.
9
An
experimental edgetrace
that is
closeto
aGaus
type
of edge25
r.j r-j CM I if> CO *4 Q n"' ~ -i tu i"J Ct:H M
I I
II
I
iI I I
I I I I I I I
cdCO <S> -T 01 04 tT l> CO iS
O I I I I I
LlJCTjiTLiJ (Ct-IOUJ
CO
UJ ct
I
I
I
I
I
I
I
I
I
s> >Ti co r-- 'a? m -tr ro o~i
ujqijuj ttt-xoui
ca u 2 CO CVl CM CJ CO i CO Q tt Ctt 1 _l LU Ct cr. <J_> ro
111111111111111111111
s> o co y; t w im*
>.o co cs>
(Sill
LUQULU .-tSCIOUJ
I
U
Fig.
10
A
to
D:
The
effect ofincreasing
noise onthe
Gaus
type
of edge26
x>
r-01
CJ
on
-, t_f>
in c
CJ LU
u.
'1
-m
i
1
1
i i-r
i 1 1 1 1 1 1 n i
<sCO i-JJ * CJ Pi *T '' CO 'S
'3 1 I I I t-i
I
'2LU 'j-;il-CtLU<rCI
CO
1 1 1
1 1 1 irrr
1 1 1 1 1
1
1
1
1
1
s'S CO '.D
-rl-C-J CJ 1"
.O CO cs
_ o I I I I <
I
I'-'Z-i- O'ja-CtLU'-XO
I'-'ZLU ujO-CtUJCrQ
_i->z:uj o:ia_ct-Uj.io
Fig.
11 A
to
D:
The
effect ofincreasing
noise onthe
line
spread.27
M1-0-f*
T
R AN
S
F
F UN
C
THEORETICAL
RAMP
EDGE
ALL
METHODSNO NOISE
8
18
12 14 16 1828
REL.
FREQ.Fig.
12
The MTF's
obtainedby
the
varioustechniques.
filter did
not workin
this
case.The
matchedm
1
.6-+a.
%
TR
A
N
S
F
FU
C .3THEORETICAL
GAUS EDGE
\
ALL
METHODS
NO NOISEi
\
>
1
2 3
5 6 78
A
\
V
*
f-l
?
Ii
0
2
4
6
8
18
1214
1618
28
REL.
FREQ.
28
MTF's,
fig.
13,
are alltight together
andonly the
edge gradient startsto
break
up
at20%
modulation.Better
results atless
than
20%
modulation
canbe
obtainedby
the
edge gradienttechnique
if
alarger
numberof gradients
is
used.Fig.
14
and15
showthe
effect ofincreasing
noise onthe
MTF's
obtained
by
the
direct derivative
technique.
Fig.
16
and17
showthe
effect ofincreasing
noise onthe
MTF's
obtained
by
the
Jones
automatedtechnique.
It
is
interesting
to
observe,
fig.
16,
that
the
MTF
computedfrom
the
noiselessramp
edgetrace
is
muchdifferent
than the theoretical
MTF.
Fig.
18
and19
showthe
effect ofincreasing
noise onthe
MTF's
obtained
by
the
Tatian
technique.
It
is
interesting
to
notethat
the
effect of noise
is
stronger onthe
Gaus
(fig.
15,
17,
19)
edgetrace
than
the
ramp
(fig.
14, 16, 18)
edgetrace.
However
it
appearsthat
for
the three
above mentionedtechniques,
the
noise effects are concentratedin
the
higher
frequencies
withonly
little
effectsin
the
lower
range.Fig.
20
and21
showthe
effect ofincreasing
noise onthe
MTF's
obtained
by
the
second momenttechnique.
Again
the
effect of noiseis
stronger on
the
Gaus
(fig.
21)
edgetrace
than
onthe
ramp
(fig.
20)
edge
trace.
It
is
disappointing
to
seethat the
noise stillinfluences
the MTF
as much asit
showsin
fig.
21.
Fig.
22
and23
showthe
effect ofincreasing
noise onthe
MTF's
obtained
by
the
matchedfilter technique.
The
reasonfor
notworking
onthe
ramp
(fig.
22)
edgetrace
is
basically
that
the
technique
is
too
simplistic and
thus
does
not work whenl(x)
is
not of aGaussian
shape.However
it
behaved
well onthe
Gaus
(fig.
23)
edgetrace
showing
little
29
.1 n 10^..v
D A -r _, p ' i H H *j -'j c h i4t
F 3+-M H i-Ul-THEORETICAL
PhMPedge
DIRECT OERIU ii FF:
A E
REL FPEP
Fig.
14
The
effect of noise onthe
MTF
obtainedby
the
direct
derivative
technique,
whenusing
the
ramp
edge.n l 8-> i n
n y*| D 9-\ *'!*. 3-~
\
*V
T R \ ~"\
vV A. b-_
\
H
c c
J ._l
F
4-F 3
-U
H
. U~ u1-a
t
1-THEORETICAL GAUS EDGE
DIRECT DERIU
0 2 4 6 8 10 12 14 16 IS 20
REL FREQ
30
THEORETICAL
RAMPEDGE
JONES
SMOOTH
DIFFREL
FREQ
Fig.
16
The
effect of noise onthe MTF
obtainedby
the
Jones
smooth/diff.technique,
whenusing
the
ramp
edge.THEORETICAL
GAUS
EDGE
JONES SMOOTH
DIFF
REL
FREQ.
Fig.
17
The
effect of noise onthe
MTF
obtainedby
the
Jones
31
THEORETICAL
RAMP
EDGE
8
.5-T
R A
N
S
F
F U
N
C
TATIAN
8
18
12
14
16
18
28
REL.
FREQ.
Fig.
18
The
effect of noise onthe
MTF
obtainedby
the
Tatian
technique,
whenusing
the
ramp
edge.THEORETICAL
GAUS
EDGE
TATIAN
8
2
4
6
8
18
12
14
16
18
28
REL.
FREQ.
Fig.
19
The
effect of noise onthe
MTF
obtainedby
the
Tatian
32
M
0
D
T
R
AN
S
F
F
UN
C
THEORETICAL
RAMP
EDGE
SECOND
MOMENT
2
4
6
8
18
12
14
16
18
20
REL.
FREQ.
Fig.
20
The
effect of noise onthe
MTF
obtainedby
the
second momenttechnique,
whenusing the
ramp
edge.M
i.eT R
A
N
SF
F
U
N
C
THEORETICAL
GAUS
EDGE
SECOND
MOMENT
f~-~|
f~1--M
-1-=H-:iSF=:
-8
2
46
8
1812
1416
18
28
REL.
FREQ.
33
8
.9-T
R AN
S
F
F
U NC
THEORETICAL
RAMP
EDGE
MATCHED
FILTER
DID
NOT
WORKREL.
FREQ.
Fig.
22
The
effect of noise onthe
MTF
obtainedby
the
matchedfilter
technique,
whenusing
the
ramp
edge.n I-*
T R A N S F
F
U
N
CTHEORETICAL
GAUS
EDGE
MATCHED
FILTER
-I -I---I--I
^#:isp-..,
-..} i.2
46
8
1812
14 1618
20
REL.
FREQ.
Fig.
23
The
effect of noise on theMTF
obtainedby
the
matchedfilter
34
Fig.
24
and25
showthe
effect ofincreasing
noise onthe
MTF's
obtained
by
the
statistical approach.Note
how little
the
noiseinflu
ences
the
MTF
obtainedfrom
both
the
ramp
(fig.
24)
edgetrace
andthe
Gaus
(fig.
25)
edgetrace.
Fig.
26
and27
showthe
effect ofincreasing
noise onthe
MTF's
obtained
by
the
edge gradienttechnique.
Note
that,
as assumedin
the
theoretical
background
section ofthis
paper,
this
technique
performedwell
in
all conditions.It
is
to
be
pointedout,
though,
that
apoly
nomial
fit
is
requiredto
performthe
calculations,
thus
part ofthe
signal
could,
as well as some effect ofnoise,
be
lost
whenperforming
the
fit.
However
the
resultsfound
here
are comparableto
those
obtained
by
the
othertechniques.
Each
technique
wasthen
appliedto
experimentally
obtained edgetraces
(fig.
8
and9).
Fig.
28
showsthe
MTF's
obtainedfrom
the
edgetrace
in
fig.
8,
whichis
very
similarto
aramp
function.
Note
that
the
second momenttechnique,
the
statisticalapproach,
Tatian
technique
and
the
direct
derivative
technique
aretightly
groupedtogether
asexpected.
Fig.
29
showsthe
MTF's
obtainedfrom
the
edgetrace
in
fig.
9,
which
is
very
similarto
a cumulativeGaussian function.
Note that
all,
except
the
matchedfilter
technique
aretightly
groupeddown
to
about30%
modulationwhich,
oncemore,
demonstrates
that
non-Fouriertech
niques are good predictors
in
the
low
frequency
range,
i.e.
above30%
35
T
R
AN
S
F
F U
N
C
^ .
THEORETICAL
RAMP
EDGE
STATISTICAL
APPR.8
2
46
8 10 12 14 16 IS 20REL.
FREQ.
Fig.
24
The
effect of noise onthe MTF
obtainedby
the
statisticalapproach
technique,
whenusing the
ramp
edge.8
0
T R
A
S
F
F U
N
C
, ^. THEORETICAL
GAUS
EDGE
9--\
STATISTICALAPPR.
%-,
', >v..
.6--\*..
A B C
cL
h
i
*-1
f-^^r-M---*
r0
2 46
8
1812
14 1618
28
REL.
FREQ.
Fiq.
25
The
effect of noise onthe
MTF
obtainedby
the
statistical36
T
R
A
N
S
F
F
U
N
C
THEORETICAL
RAMP
EDGE
EDGE
GRADIENT
1ST
DEG
FIT
..f.___..|
j.._-...|
j. 1.8 10 12 14 16 18 20
REL.
FREQ.
Fig.
26
The
effect of noise onthe MTF
obtainedby
the
edge gradienttechnique,
whenusing
the
ramp
edge.M
1
.0^-1;,
THEORETICAL
GAUS
EDGE
T R A N
S
F
F
U
N C
EDGE
GRADIENT
5TH
DEG
FIT6
8
1812
14
16
18
28
REL.
FREQ.
Fig.
27
The
effect of noise onthe
MTF
obtainedby
the
edge gradient37
EXPERIMENTAL
EDGE
REL. FREQ
Fig.
28
The MTF's
obtained,
by
eachtechnique,
whenusing the
edgetrace
in
fig.
8.
EXPERIMENTAL
EDGE
REL.
FREQ.
Fig.
29
The
MTF's
obtained,
by
eachtechnique,
whenusing
the
edge38
DISCUSSION
Problems
were encountered with one ofthe
techniques
evaluatedwhile
the
othersbehaved
reasonably
well under all conditions ofanaly
sis.
The
matchedfilter
technique
usedhere
was ofthe
simplesttype
(as
described
in
eqn.33
and34)
and as suchdid
not giveany
satisfactory
results whenworking
onthe theoretical
ramp
edgetraces
(fig.
22).
However,
it
performed well onthe
theoretical
Gaus
edgetraces
(fig.
23).
One
reasonfor
encountering
such problemis
that
no attempt wasmade
to
smooth orfit
the
edgetraces,
exceptfor
the
edge gradienttechnique,
in
orderto
fully
assessthe
potential of eachtechnique
asthey
are presentedin
the
theoretical
background
section ofthis
paper.The
MTF's
obtainedby
eachtechnique
gavedifferent
results whennoise was added
to
the
original edgetrace.
Table
3
showsthe
peakspread
in
modulationfor
eachtechnique
overthe
range of noise usedhere.
It
is
the
opinion ofthe
authorthat
the
"statistical
approach"is
the
best
ofthe
non-Fouriertechniques
asit
producedthe
best
MTF
approximation when
tested
with noise.It
is
alsohis
opinionthat
whenheavy
noiseis
suspected,that
the
results obtainedfrom
the
statisticalapproach will
be
more accuratethan
any
ofthe
othertechniques
sinceits
results remained quasi-unchanged under all conditions(fig.
29, 30,
39
Peak
modulation spreaddue
to
noise;
Method
at selected relativefrequencies
Selected
frequencies
4.0
6.0
8.0
Direct deriv.
+FFT
ramp
edge .02 .02Gaus
edge .31 .20Jones
automatedtech.
ramp
edge .16 .28Gaus
edge .25 .12Tatian technique
ramp
edge .03 .07Gaus
edge .28 .08Second
moment approx.ramp
edge .03 .07Gaus
edge .50 .50Statistical
approachramp
edge .03 .03Gaus
edge .05 .08Matched filter
tech.
ramp
edgeGaus
edge .14 .20Edge
gradienttech.
ramp
edge .00 .00Gaus
edge .28 .2002
20
34
20
10
12
11
40
15
08
*
15
00**
03**
*The
matchedfilter tech.
did
not work onthis
type
of edge.**A
polynomialfit
was requiredfor
this
technique.
Table 3.
Table
ofthe
peak modulation spreaddue
to
noisefor
each40
The
weakness ofthe
second moment underhigh S/N
ratiois from
the
assumption made
in
eqn.19:
OO
S
Kx)
dx
=1
= m0
which
becomes
untrue asthe
S/N
ratiodecreases.
It
was verifiedthat
mQ
canactually
drop
aslow
as0.35
whichis
enoughto
render eqn.20
invalid.
The
sigma square valuefound
from
eqn.29
accountsfor
allsituations and
thus
is
abetter
predictorthan
mitself.
It
canbe
demonstrated from
eqn.31
that:
MTF(f)
=which
is
similarto
eqn.21:
MTF(f)
=The
two
above equations willbe
equal whenmQ
=1
and m, =0,
seeeqn.
29,
but
different
whenmn
+
1;
which makes sigma square abetter
predictor
than
m.The
comparisonbetween
the
resultsfrom
eachtechnique
wasonly
ona relative
basis
as no statisticalevaluation,
i.e.
repetitiveruns,
were performed.
Thus
the
resultsin
the
previous section andthe
observations made
in
this
section shouldonly
be
considered as guide41
CONCLUSION
The
working
hypothesis
behind
this
research projectis
that
non-Fourier
techniques
canbe
as goodMTF
predictors as areFourier
tech
niques.
An
Applesoft
program was writtenthat
performs allnecessary
operations
to
solvefor
eachtechnique.
Several
different
techniques
were compared withdifferent
levels
ofnoise,
onboth
theoretical
and experimental edgetraces.
The
resultswere compared
from
technique
to
technique,
which verifiedthe
working
hypothesis.
The
"statistical
approach"has
provento
be
the
best
non-Fourierpredictor when noise
is
involved,
asit
showsvery
little
variationin
the
resulting
MTF
whenthe
S/N
ratiois
anywhere above10.
However,
if
exact results are wanted over
the
wholefrequency
range,
whenthe
presence of noise
is
not suspected orthought to
be
oflittle
influence,
the
Tatian
technique
orDirect
Derivative
technique
should,
from
42
RECOMMENDATIONS
The
primary
recommendationfor
future
work onthis
topic
is
that
each
technique
be
appliedto
experimentally
obtained edgetraces
andthat the
resultsbe
compared withthe
manufacturer's computedMTF,
based
on
the
design
parameters,
sothat
we can get abetter
estimation ofthe
accuracy
of eachtechnique.
The
attention ofthe
researcher shouldbe
concentrated onthe
"second
moment technique" andthe
"statistical
approach",
asthe
two
other non-Fourier
techniques
developed
here,
although simplein
principle,
aretime-consuming.
For
example,
the
matchedfilter
technique
(2)
needs
to
be
much more sophisticated^ Jin
orderto
give comparableresults.
It
is
recommendedthat
non-Fouriertechniques
be
tested
on edgetraces
producedby
cascaded systems such as camera/film combinations.Finally,
for
this
researchto
be
of somevalue,
the
non-Fouriertechniques
developed
here
needto
be
statistically
evaluated,
i.e.
the
results compared
from
morethan
onerun,
to
get ahigher
degree
of43
REFERENCES
1.
Perrin
F.H.:
"Methods
ofappraising
photographic systems.Part
I-Historical
review,"Journal
ofS.M.P.T.E.
69:
(I960).
2.
Clark J.H.:
"MTF
for
photographicfilms
by
parameter estimationin
the
space andfrequency
domains,"Thesis, RIT,
June 1978.
3.
Gaskill
J.D.:
Linear
systems,
Fourier
transforms
andoptics,
John
Wiley
andsons,
Inc.,
New Y0rk:p339 (1978).
4.
Jones
R.A.:
"An
automatedtechnique
for
deriving
MTF's
from
edgetraces,"
Photgr,
Sci.
Eng.
11:102-106
(1967).
5.
Tatian
B.
:"Method
for
obtaining
the
transfer
function
from
the
edge response function,"
J.O.S.A.
55:1014-1019
(1965).
6.
Barakat
R.
:"Determination
ofthe
opticaltransfer
function
directly
from
the
edge spread function,"J.O.S.A.
10:1217-1221
(1965).
7.
Scott
et al.:"The
use of edge gradientsin
determining
modulationtransfer
function,"Photogr,
Sci.
Eng.
7:345-349 (1963).
8.
Gaskill
J.D.
p261.9.
Castl