n i - nasa€¦ · as fourier transformation, correlation, convolution and filtering can be...

74
ELECTRICAL E, N I (NA'SA-CR-1500-2) OPTICAl DATA PROCESSING N77-10615 N i STUDY Final Technical Report, 3 Feb.,1975:- = A Oct. 1976 (Auburn Univ.) 73 p HC AO4/MF 01 CSCL 20F Unclas Ei- G3/-3 09515 E' ENGINEERING EXPERIMEN AJTAN AUBURN UNIVE AUBURN, ALABAMA\%, -1 https://ntrs.nasa.gov/search.jsp?R=19770003672 2020-05-07T17:50:53+00:00Z

Upload: others

Post on 08-May-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

ELECTRICAL

E

N

I

(NASA-CR-1500-2) OPTICAl DATA PROCESSING N77-10615 N i STUDY Final Technical Report 3 Feb1975- = A

Oct 1976 (Auburn Univ) 73 p HC AO4MF01 CSCL 20F Unclas EishyG3-3 09515 E

ENGINEERING EXPERIMEN AJTAN

AUBURN UNIVE AUBURN ALABAMA

-1

httpsntrsnasagovsearchjspR=19770003672 2020-05-07T175053+0000Z

OPTICAL DATA PROCESSING STUDY

Contract No NAS8-31223 Control No 1-5-56-50731 (IF) Inclusive Dates 2-3-75 to 10-4-76

FINAL TECHNICAL REPORT I

Author L J Pinson

Submitted by Department of Electrical Engineering Auburn University Engineering Experiment Station Auburn Alabama 36830

Date Submitted Copy of Oftober 12 1976

NOV 1976RECEIVED lNASTI FACIUI y

INPUT B f CI

CONTENTS

Page

10 INTRODUCTION 1

20 THEORETICAL ANALYSIS - - 5

30 EXPERIMENTAL ANALYSIS 38

40 COMPUTER ANALYSIS 54

50 CONCLUSION 61

APPENDICES

A FRESNEL TRANSFORM 63 B COMPUTER PROGRAMS 65

ii

10 INTRODUCTION

Satellite-borne multi-spectral sensors such as found on the ERTS

have produced a large volume of imagery which if it is to be useful

must be transmitted to earth and analyzed The large volume of this

imagery has in fact created problems in how to best transmit store and

analyze the images A useful alternative to this procedure is to perform

on-boardprocessing of the imagery for purposes of redundancy reduction

or feature extraction A successful on-board processing system would

greatly reduce the load on transmission and storage systems

The most promising iandidate for on-board processing of images is a

coherent optical data processing system Suth a system can effectively

handle the large information content of imagery at high speeds Evaluation

and verification of coherent optical data processing for this application

-involves theoretical as well as experimental knowledge of the characteristics

and limitations of the system This program had the objective of establishshy

ing techniques and a knowledge base for performing this evaluation and

verification of an optical data processing system designed to reduce

redundancy in picture transmission and to detect specific image features

Theoretically derived Fourier transform characteristics for simple

but representative two-dimensional images serve as a basis for predicting

expected features of actual target images Typical targets to be considered

might include linear patterns representative of rows of agricultural crops

Large area patterns of varyingshapes could represent large scale terrain

features Targetsof simple geometry were analyzed first Further refineshy

ment such as inclusion of random dot patterns of varying sizes or certain

1

0P 002 Q

2

curvilinear patterns ishowever necessary for adequate modeling of

actual imagery

Fourier transformation and spatial filtering of coherent optical

images is readily accomplished in theory and in the laboratory The

effect of various parameters such as optical aperture incidence angles

-the transparency assumption and the thin lens approximation on resolution

and performance of the optical data processing system were predicted and

tested An exhaustive parametric evaluation was not done however those

parameters shown to be most critical to the system operation were

evaluated thoroughly

Thus the program consisted of analytical and experimental evaluation

of Fourier and correlation plane features in an optical data processing

system for the purpose of redundancy reduction and pattern recognition

Figure 1 shows pictorially the main features of the program

The following tasks were to be accomplished infulfillment of the

proposed optical data processingresearch effort

Theoretical analysis

Determine Fourier and correlation plane features to be expected

from simple but representative target models

Determine expected parametric limitations as related to feature

extraction in the Fourier and correlation planes

Study briefly detector geometry requirements as related to

feature geometries -

Investigate methods for combined analysis of Fourier and

correlation plane information

ORIGINAL PAGE IS OP POOR QUALM

3

REPRESENTATIVE COMJPARISON GFE

TARGET gt- TARGET

MODELS FILM

THEORETICAL PAR METER EXPERIMfNTAL

ANALYSIS VARIATION ANALYSIS

(Fourier (Pupil function - (coherent

transform image size laser

correlation wavelength processing)

spatial etc) filtering) _

PREDICTED ACTUAL

FEATURES COMPARATIVE FEATURES

EVALUATION

FEATURE UTILIZATION (comparison of features for various targets)

ODF

GOAL

EVALUATION (redundancy reduction pattern classification)

Figure 1 Flow Chart for Optical Data Processing Study

4

Experimental verification

Using GFE target film verify actual Fourier and correlation

plane features for several target classifications

Compare experimental and theoretical features for representative

targets

Implement and evaluate candidate methods for simultaneous analysis

of Fourier and correlation plane features

20 THEORETICAL ANALYSIS

The development of coherent light sources has made possible the

processing of data using optical methods That such processing methods

as Fourier transformation correlation convolution and filtering can

be achieved optically is not obvious and-needs further justification It

is the purpose of this section to present a concise theoretical development

showing that these processing methods can be implemented optically and

to point out practical limitations to laboratory implementation of

theoretically valid results

No attempt is made to be complete in the description of the properties

of coherent light Rather the emphasis willbe on techniques important

to the goals of this contract Additionally the presentation is

intended to be a concise reference useful to those persons familiar to

some extent with coherent light systems and the mathematical development

of Fourier transforms All the information is available in scattered

references but nowhere is it available in as concise and readable (hopeshy

fully) a form as presented here

Since light is a form of electromagnetic energy a fundamental

starting point for its description is Maxwells equations Through a

series of assumptions (most of which can be imposed on a real system) and

approximations the development leads to the Helmholtz equation and

then the Fourier transforming properties of lenses The assumptions and

approximations are summarized in table form along with the result for

easy reference

Fourier transformation leads logically to correlation convolution

and filtering Theoretical development of these operations is given

52aIGINAL PAGE IS OF POOR QUALICY

The problems associated with the use of practical systems for

data input recording and filtering are di-scussed briefly along with

parametric limitations

Finally a brief theoretical introduction to advanced analysis

methods which look at the fine structure of the optical correlation

-plane isgiven

7

MAXWELLS EQUATIONS THE HELMHOLTZ EQUATION AND THE

FOURIER TRANSFORMING PROPERTIES OF LENSES

Beginning with Maxwells equations for a source free medium- (Assumption

-VxfE X 0Vx~

It is convenient to use the temporal Fourier transforms of B amp D

to clear the time derivatives ie

A A A

VX 6(v) 2- r vx H(6 Y 4v ^() -zrrtgt0

where EM and Eand$ are Fourier transform pairsand

Next weassume a non-dispersive (uniform) medium so the dependence

on V can be dropped (Assumption 2)

Further if the medium is isotropic and linear we have (Assumption 3) A 4 A

t_ (3)

Otherwise e and are second rank tensors

From the differential equations in (2)we obtain the

VECTOR V f 4-4 k 0 HELMHOLTZ o EQUATIONS H ()

For a three dimensional medium (such as an optical system) solution

of the Vector Helmholtz Equations involves simultaneous solution of six

scalar differential equations subject to a set of boundary conditions

8

Solution of Vector Helmholtz Equations is impossible except for a

few (impractical) cases eg plane wave incident on perfect thin

conducting half-plane

Scalar Approximation - Assume the optical phenomenon of interest

is adequately described by a scalar quantity Note the optical

phenomenon of interest is normally the magnitude of the electric field

vector expressed as a function of X Y and Z coordinates and either time

or frequency

The scalar approximation results in the

SCALAR 2 tS HELMHOLTZ V4 plusmn+ 4 kN -EQUATION

where - $V and 4C t)= _ - 44x9 ) ()

4 isreal cB is generally complex

Ifwe assume a monochromatic field with temporal frequency

-V(Assumption 4)

then cf can be represented by

where W v is a general complex spatial amplitude function

For a plane wave has the formAx

trrcs pYj 91)

4shyz7sr ZA)-jtX

9

then a7 X- 7 +

The plane wave form of satisfies the scalar Helmholtz

equation if we impose the condition

- wavenumber

optical wavelength

itcan be shown thata sum of planewaves also satisfies the scalar

Helmholtz equation ieh

where - wavenumber for nth planewave

and = for all n

By taking this line of reasoning one step further a continuous

sum of planewaves also satisfies the scalar Helmholtz equation ie

(()

Significance - Any optical function which can be represented as a

sum of planewaves will satisfy the scalar Helmholtz equation

Assumptions(MEP to this point (cm TCAt-M) pFtlP)

1 source-free 1 adequately represented as a scalar quantity

2 isotropic 2 monochromatic

3 linEir 3 can be represented as a summation

4 uniform (non-dispersive) of plane-waves

[0

Propagation of Optical Fields

Begin with the scalar Helmholtz equation given by equation (6)

Define Px )= P(xL 2)e [is-) to separate temporal and spatial dependence (This form also implies a

monochromatic field) with PCxnY) being the complex amplitude of

the field

Can verify that v ) also satisfies the scalar Helmholtz

equation ie

tAt

Solve the boundary value problem for the flel9d T (X

given 4 (oio) as one of the boundary conditions The result is

the Rayleigh-Sommerfeld integralA- J1 SJ Z ---M i t 07)

where s ( +-(I +5--Two approximations are now made to simplify (17) (See Figure 2)

Approximation 1 ( A gtgt i ie distance s is much greater than the

optical wavelength

Then we have the result known as Huygens Principle

A5LAamp1Jy(X 770 CO-S(Z 1s C IS

2 PRoPA C-1177Q ofr cr4t- pIELZD-S

weighted sum of spherical wavesthat isthe field at (XY 2) is a

emanating from o

assumeApproximation 2 (Fresnel approximation) at Z = d (Figure 2)

the size of the regions ofinterest in either plane is small compared to

d ie

then costds) i

and the exponential term becomes approximately

4_ -S= CIE 4- x- shy

4- ) -iY f 4

12

Since 4 (x-(t--) are small compared to d we can neglect the higher

order terms and

1for exponent S i+ Ccj ( i~

Substituting (20) into (18) gives

Equation (21) is the result of the Fresnel approximation and holds in

the region close to the optical axis

Recognize that (21) is (See Appendix A) e times the

Fresnel transform of -

The constant phase term is usually ignored and the result is that if the

optical field is known in a given plane it can be found in another plane

by Fresnel transformation

COMMENT The Fresnel approximation holds much better than expected

The reason is that for images with low spatial frequencies

there is no longer a need to restrict the regions of interest to be close

to the optical axis Most images of interest will fall in this category

Fourier Properties of Lenses

Transparency Assumption - Assume a thin lens has t(X Y) transmission

function consisting of the product of a pupil function and a pure phase

term ie

04)tj

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 2: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

OPTICAL DATA PROCESSING STUDY

Contract No NAS8-31223 Control No 1-5-56-50731 (IF) Inclusive Dates 2-3-75 to 10-4-76

FINAL TECHNICAL REPORT I

Author L J Pinson

Submitted by Department of Electrical Engineering Auburn University Engineering Experiment Station Auburn Alabama 36830

Date Submitted Copy of Oftober 12 1976

NOV 1976RECEIVED lNASTI FACIUI y

INPUT B f CI

CONTENTS

Page

10 INTRODUCTION 1

20 THEORETICAL ANALYSIS - - 5

30 EXPERIMENTAL ANALYSIS 38

40 COMPUTER ANALYSIS 54

50 CONCLUSION 61

APPENDICES

A FRESNEL TRANSFORM 63 B COMPUTER PROGRAMS 65

ii

10 INTRODUCTION

Satellite-borne multi-spectral sensors such as found on the ERTS

have produced a large volume of imagery which if it is to be useful

must be transmitted to earth and analyzed The large volume of this

imagery has in fact created problems in how to best transmit store and

analyze the images A useful alternative to this procedure is to perform

on-boardprocessing of the imagery for purposes of redundancy reduction

or feature extraction A successful on-board processing system would

greatly reduce the load on transmission and storage systems

The most promising iandidate for on-board processing of images is a

coherent optical data processing system Suth a system can effectively

handle the large information content of imagery at high speeds Evaluation

and verification of coherent optical data processing for this application

-involves theoretical as well as experimental knowledge of the characteristics

and limitations of the system This program had the objective of establishshy

ing techniques and a knowledge base for performing this evaluation and

verification of an optical data processing system designed to reduce

redundancy in picture transmission and to detect specific image features

Theoretically derived Fourier transform characteristics for simple

but representative two-dimensional images serve as a basis for predicting

expected features of actual target images Typical targets to be considered

might include linear patterns representative of rows of agricultural crops

Large area patterns of varyingshapes could represent large scale terrain

features Targetsof simple geometry were analyzed first Further refineshy

ment such as inclusion of random dot patterns of varying sizes or certain

1

0P 002 Q

2

curvilinear patterns ishowever necessary for adequate modeling of

actual imagery

Fourier transformation and spatial filtering of coherent optical

images is readily accomplished in theory and in the laboratory The

effect of various parameters such as optical aperture incidence angles

-the transparency assumption and the thin lens approximation on resolution

and performance of the optical data processing system were predicted and

tested An exhaustive parametric evaluation was not done however those

parameters shown to be most critical to the system operation were

evaluated thoroughly

Thus the program consisted of analytical and experimental evaluation

of Fourier and correlation plane features in an optical data processing

system for the purpose of redundancy reduction and pattern recognition

Figure 1 shows pictorially the main features of the program

The following tasks were to be accomplished infulfillment of the

proposed optical data processingresearch effort

Theoretical analysis

Determine Fourier and correlation plane features to be expected

from simple but representative target models

Determine expected parametric limitations as related to feature

extraction in the Fourier and correlation planes

Study briefly detector geometry requirements as related to

feature geometries -

Investigate methods for combined analysis of Fourier and

correlation plane information

ORIGINAL PAGE IS OP POOR QUALM

3

REPRESENTATIVE COMJPARISON GFE

TARGET gt- TARGET

MODELS FILM

THEORETICAL PAR METER EXPERIMfNTAL

ANALYSIS VARIATION ANALYSIS

(Fourier (Pupil function - (coherent

transform image size laser

correlation wavelength processing)

spatial etc) filtering) _

PREDICTED ACTUAL

FEATURES COMPARATIVE FEATURES

EVALUATION

FEATURE UTILIZATION (comparison of features for various targets)

ODF

GOAL

EVALUATION (redundancy reduction pattern classification)

Figure 1 Flow Chart for Optical Data Processing Study

4

Experimental verification

Using GFE target film verify actual Fourier and correlation

plane features for several target classifications

Compare experimental and theoretical features for representative

targets

Implement and evaluate candidate methods for simultaneous analysis

of Fourier and correlation plane features

20 THEORETICAL ANALYSIS

The development of coherent light sources has made possible the

processing of data using optical methods That such processing methods

as Fourier transformation correlation convolution and filtering can

be achieved optically is not obvious and-needs further justification It

is the purpose of this section to present a concise theoretical development

showing that these processing methods can be implemented optically and

to point out practical limitations to laboratory implementation of

theoretically valid results

No attempt is made to be complete in the description of the properties

of coherent light Rather the emphasis willbe on techniques important

to the goals of this contract Additionally the presentation is

intended to be a concise reference useful to those persons familiar to

some extent with coherent light systems and the mathematical development

of Fourier transforms All the information is available in scattered

references but nowhere is it available in as concise and readable (hopeshy

fully) a form as presented here

Since light is a form of electromagnetic energy a fundamental

starting point for its description is Maxwells equations Through a

series of assumptions (most of which can be imposed on a real system) and

approximations the development leads to the Helmholtz equation and

then the Fourier transforming properties of lenses The assumptions and

approximations are summarized in table form along with the result for

easy reference

Fourier transformation leads logically to correlation convolution

and filtering Theoretical development of these operations is given

52aIGINAL PAGE IS OF POOR QUALICY

The problems associated with the use of practical systems for

data input recording and filtering are di-scussed briefly along with

parametric limitations

Finally a brief theoretical introduction to advanced analysis

methods which look at the fine structure of the optical correlation

-plane isgiven

7

MAXWELLS EQUATIONS THE HELMHOLTZ EQUATION AND THE

FOURIER TRANSFORMING PROPERTIES OF LENSES

Beginning with Maxwells equations for a source free medium- (Assumption

-VxfE X 0Vx~

It is convenient to use the temporal Fourier transforms of B amp D

to clear the time derivatives ie

A A A

VX 6(v) 2- r vx H(6 Y 4v ^() -zrrtgt0

where EM and Eand$ are Fourier transform pairsand

Next weassume a non-dispersive (uniform) medium so the dependence

on V can be dropped (Assumption 2)

Further if the medium is isotropic and linear we have (Assumption 3) A 4 A

t_ (3)

Otherwise e and are second rank tensors

From the differential equations in (2)we obtain the

VECTOR V f 4-4 k 0 HELMHOLTZ o EQUATIONS H ()

For a three dimensional medium (such as an optical system) solution

of the Vector Helmholtz Equations involves simultaneous solution of six

scalar differential equations subject to a set of boundary conditions

8

Solution of Vector Helmholtz Equations is impossible except for a

few (impractical) cases eg plane wave incident on perfect thin

conducting half-plane

Scalar Approximation - Assume the optical phenomenon of interest

is adequately described by a scalar quantity Note the optical

phenomenon of interest is normally the magnitude of the electric field

vector expressed as a function of X Y and Z coordinates and either time

or frequency

The scalar approximation results in the

SCALAR 2 tS HELMHOLTZ V4 plusmn+ 4 kN -EQUATION

where - $V and 4C t)= _ - 44x9 ) ()

4 isreal cB is generally complex

Ifwe assume a monochromatic field with temporal frequency

-V(Assumption 4)

then cf can be represented by

where W v is a general complex spatial amplitude function

For a plane wave has the formAx

trrcs pYj 91)

4shyz7sr ZA)-jtX

9

then a7 X- 7 +

The plane wave form of satisfies the scalar Helmholtz

equation if we impose the condition

- wavenumber

optical wavelength

itcan be shown thata sum of planewaves also satisfies the scalar

Helmholtz equation ieh

where - wavenumber for nth planewave

and = for all n

By taking this line of reasoning one step further a continuous

sum of planewaves also satisfies the scalar Helmholtz equation ie

(()

Significance - Any optical function which can be represented as a

sum of planewaves will satisfy the scalar Helmholtz equation

Assumptions(MEP to this point (cm TCAt-M) pFtlP)

1 source-free 1 adequately represented as a scalar quantity

2 isotropic 2 monochromatic

3 linEir 3 can be represented as a summation

4 uniform (non-dispersive) of plane-waves

[0

Propagation of Optical Fields

Begin with the scalar Helmholtz equation given by equation (6)

Define Px )= P(xL 2)e [is-) to separate temporal and spatial dependence (This form also implies a

monochromatic field) with PCxnY) being the complex amplitude of

the field

Can verify that v ) also satisfies the scalar Helmholtz

equation ie

tAt

Solve the boundary value problem for the flel9d T (X

given 4 (oio) as one of the boundary conditions The result is

the Rayleigh-Sommerfeld integralA- J1 SJ Z ---M i t 07)

where s ( +-(I +5--Two approximations are now made to simplify (17) (See Figure 2)

Approximation 1 ( A gtgt i ie distance s is much greater than the

optical wavelength

Then we have the result known as Huygens Principle

A5LAamp1Jy(X 770 CO-S(Z 1s C IS

2 PRoPA C-1177Q ofr cr4t- pIELZD-S

weighted sum of spherical wavesthat isthe field at (XY 2) is a

emanating from o

assumeApproximation 2 (Fresnel approximation) at Z = d (Figure 2)

the size of the regions ofinterest in either plane is small compared to

d ie

then costds) i

and the exponential term becomes approximately

4_ -S= CIE 4- x- shy

4- ) -iY f 4

12

Since 4 (x-(t--) are small compared to d we can neglect the higher

order terms and

1for exponent S i+ Ccj ( i~

Substituting (20) into (18) gives

Equation (21) is the result of the Fresnel approximation and holds in

the region close to the optical axis

Recognize that (21) is (See Appendix A) e times the

Fresnel transform of -

The constant phase term is usually ignored and the result is that if the

optical field is known in a given plane it can be found in another plane

by Fresnel transformation

COMMENT The Fresnel approximation holds much better than expected

The reason is that for images with low spatial frequencies

there is no longer a need to restrict the regions of interest to be close

to the optical axis Most images of interest will fall in this category

Fourier Properties of Lenses

Transparency Assumption - Assume a thin lens has t(X Y) transmission

function consisting of the product of a pupil function and a pure phase

term ie

04)tj

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 3: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

CONTENTS

Page

10 INTRODUCTION 1

20 THEORETICAL ANALYSIS - - 5

30 EXPERIMENTAL ANALYSIS 38

40 COMPUTER ANALYSIS 54

50 CONCLUSION 61

APPENDICES

A FRESNEL TRANSFORM 63 B COMPUTER PROGRAMS 65

ii

10 INTRODUCTION

Satellite-borne multi-spectral sensors such as found on the ERTS

have produced a large volume of imagery which if it is to be useful

must be transmitted to earth and analyzed The large volume of this

imagery has in fact created problems in how to best transmit store and

analyze the images A useful alternative to this procedure is to perform

on-boardprocessing of the imagery for purposes of redundancy reduction

or feature extraction A successful on-board processing system would

greatly reduce the load on transmission and storage systems

The most promising iandidate for on-board processing of images is a

coherent optical data processing system Suth a system can effectively

handle the large information content of imagery at high speeds Evaluation

and verification of coherent optical data processing for this application

-involves theoretical as well as experimental knowledge of the characteristics

and limitations of the system This program had the objective of establishshy

ing techniques and a knowledge base for performing this evaluation and

verification of an optical data processing system designed to reduce

redundancy in picture transmission and to detect specific image features

Theoretically derived Fourier transform characteristics for simple

but representative two-dimensional images serve as a basis for predicting

expected features of actual target images Typical targets to be considered

might include linear patterns representative of rows of agricultural crops

Large area patterns of varyingshapes could represent large scale terrain

features Targetsof simple geometry were analyzed first Further refineshy

ment such as inclusion of random dot patterns of varying sizes or certain

1

0P 002 Q

2

curvilinear patterns ishowever necessary for adequate modeling of

actual imagery

Fourier transformation and spatial filtering of coherent optical

images is readily accomplished in theory and in the laboratory The

effect of various parameters such as optical aperture incidence angles

-the transparency assumption and the thin lens approximation on resolution

and performance of the optical data processing system were predicted and

tested An exhaustive parametric evaluation was not done however those

parameters shown to be most critical to the system operation were

evaluated thoroughly

Thus the program consisted of analytical and experimental evaluation

of Fourier and correlation plane features in an optical data processing

system for the purpose of redundancy reduction and pattern recognition

Figure 1 shows pictorially the main features of the program

The following tasks were to be accomplished infulfillment of the

proposed optical data processingresearch effort

Theoretical analysis

Determine Fourier and correlation plane features to be expected

from simple but representative target models

Determine expected parametric limitations as related to feature

extraction in the Fourier and correlation planes

Study briefly detector geometry requirements as related to

feature geometries -

Investigate methods for combined analysis of Fourier and

correlation plane information

ORIGINAL PAGE IS OP POOR QUALM

3

REPRESENTATIVE COMJPARISON GFE

TARGET gt- TARGET

MODELS FILM

THEORETICAL PAR METER EXPERIMfNTAL

ANALYSIS VARIATION ANALYSIS

(Fourier (Pupil function - (coherent

transform image size laser

correlation wavelength processing)

spatial etc) filtering) _

PREDICTED ACTUAL

FEATURES COMPARATIVE FEATURES

EVALUATION

FEATURE UTILIZATION (comparison of features for various targets)

ODF

GOAL

EVALUATION (redundancy reduction pattern classification)

Figure 1 Flow Chart for Optical Data Processing Study

4

Experimental verification

Using GFE target film verify actual Fourier and correlation

plane features for several target classifications

Compare experimental and theoretical features for representative

targets

Implement and evaluate candidate methods for simultaneous analysis

of Fourier and correlation plane features

20 THEORETICAL ANALYSIS

The development of coherent light sources has made possible the

processing of data using optical methods That such processing methods

as Fourier transformation correlation convolution and filtering can

be achieved optically is not obvious and-needs further justification It

is the purpose of this section to present a concise theoretical development

showing that these processing methods can be implemented optically and

to point out practical limitations to laboratory implementation of

theoretically valid results

No attempt is made to be complete in the description of the properties

of coherent light Rather the emphasis willbe on techniques important

to the goals of this contract Additionally the presentation is

intended to be a concise reference useful to those persons familiar to

some extent with coherent light systems and the mathematical development

of Fourier transforms All the information is available in scattered

references but nowhere is it available in as concise and readable (hopeshy

fully) a form as presented here

Since light is a form of electromagnetic energy a fundamental

starting point for its description is Maxwells equations Through a

series of assumptions (most of which can be imposed on a real system) and

approximations the development leads to the Helmholtz equation and

then the Fourier transforming properties of lenses The assumptions and

approximations are summarized in table form along with the result for

easy reference

Fourier transformation leads logically to correlation convolution

and filtering Theoretical development of these operations is given

52aIGINAL PAGE IS OF POOR QUALICY

The problems associated with the use of practical systems for

data input recording and filtering are di-scussed briefly along with

parametric limitations

Finally a brief theoretical introduction to advanced analysis

methods which look at the fine structure of the optical correlation

-plane isgiven

7

MAXWELLS EQUATIONS THE HELMHOLTZ EQUATION AND THE

FOURIER TRANSFORMING PROPERTIES OF LENSES

Beginning with Maxwells equations for a source free medium- (Assumption

-VxfE X 0Vx~

It is convenient to use the temporal Fourier transforms of B amp D

to clear the time derivatives ie

A A A

VX 6(v) 2- r vx H(6 Y 4v ^() -zrrtgt0

where EM and Eand$ are Fourier transform pairsand

Next weassume a non-dispersive (uniform) medium so the dependence

on V can be dropped (Assumption 2)

Further if the medium is isotropic and linear we have (Assumption 3) A 4 A

t_ (3)

Otherwise e and are second rank tensors

From the differential equations in (2)we obtain the

VECTOR V f 4-4 k 0 HELMHOLTZ o EQUATIONS H ()

For a three dimensional medium (such as an optical system) solution

of the Vector Helmholtz Equations involves simultaneous solution of six

scalar differential equations subject to a set of boundary conditions

8

Solution of Vector Helmholtz Equations is impossible except for a

few (impractical) cases eg plane wave incident on perfect thin

conducting half-plane

Scalar Approximation - Assume the optical phenomenon of interest

is adequately described by a scalar quantity Note the optical

phenomenon of interest is normally the magnitude of the electric field

vector expressed as a function of X Y and Z coordinates and either time

or frequency

The scalar approximation results in the

SCALAR 2 tS HELMHOLTZ V4 plusmn+ 4 kN -EQUATION

where - $V and 4C t)= _ - 44x9 ) ()

4 isreal cB is generally complex

Ifwe assume a monochromatic field with temporal frequency

-V(Assumption 4)

then cf can be represented by

where W v is a general complex spatial amplitude function

For a plane wave has the formAx

trrcs pYj 91)

4shyz7sr ZA)-jtX

9

then a7 X- 7 +

The plane wave form of satisfies the scalar Helmholtz

equation if we impose the condition

- wavenumber

optical wavelength

itcan be shown thata sum of planewaves also satisfies the scalar

Helmholtz equation ieh

where - wavenumber for nth planewave

and = for all n

By taking this line of reasoning one step further a continuous

sum of planewaves also satisfies the scalar Helmholtz equation ie

(()

Significance - Any optical function which can be represented as a

sum of planewaves will satisfy the scalar Helmholtz equation

Assumptions(MEP to this point (cm TCAt-M) pFtlP)

1 source-free 1 adequately represented as a scalar quantity

2 isotropic 2 monochromatic

3 linEir 3 can be represented as a summation

4 uniform (non-dispersive) of plane-waves

[0

Propagation of Optical Fields

Begin with the scalar Helmholtz equation given by equation (6)

Define Px )= P(xL 2)e [is-) to separate temporal and spatial dependence (This form also implies a

monochromatic field) with PCxnY) being the complex amplitude of

the field

Can verify that v ) also satisfies the scalar Helmholtz

equation ie

tAt

Solve the boundary value problem for the flel9d T (X

given 4 (oio) as one of the boundary conditions The result is

the Rayleigh-Sommerfeld integralA- J1 SJ Z ---M i t 07)

where s ( +-(I +5--Two approximations are now made to simplify (17) (See Figure 2)

Approximation 1 ( A gtgt i ie distance s is much greater than the

optical wavelength

Then we have the result known as Huygens Principle

A5LAamp1Jy(X 770 CO-S(Z 1s C IS

2 PRoPA C-1177Q ofr cr4t- pIELZD-S

weighted sum of spherical wavesthat isthe field at (XY 2) is a

emanating from o

assumeApproximation 2 (Fresnel approximation) at Z = d (Figure 2)

the size of the regions ofinterest in either plane is small compared to

d ie

then costds) i

and the exponential term becomes approximately

4_ -S= CIE 4- x- shy

4- ) -iY f 4

12

Since 4 (x-(t--) are small compared to d we can neglect the higher

order terms and

1for exponent S i+ Ccj ( i~

Substituting (20) into (18) gives

Equation (21) is the result of the Fresnel approximation and holds in

the region close to the optical axis

Recognize that (21) is (See Appendix A) e times the

Fresnel transform of -

The constant phase term is usually ignored and the result is that if the

optical field is known in a given plane it can be found in another plane

by Fresnel transformation

COMMENT The Fresnel approximation holds much better than expected

The reason is that for images with low spatial frequencies

there is no longer a need to restrict the regions of interest to be close

to the optical axis Most images of interest will fall in this category

Fourier Properties of Lenses

Transparency Assumption - Assume a thin lens has t(X Y) transmission

function consisting of the product of a pupil function and a pure phase

term ie

04)tj

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 4: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

10 INTRODUCTION

Satellite-borne multi-spectral sensors such as found on the ERTS

have produced a large volume of imagery which if it is to be useful

must be transmitted to earth and analyzed The large volume of this

imagery has in fact created problems in how to best transmit store and

analyze the images A useful alternative to this procedure is to perform

on-boardprocessing of the imagery for purposes of redundancy reduction

or feature extraction A successful on-board processing system would

greatly reduce the load on transmission and storage systems

The most promising iandidate for on-board processing of images is a

coherent optical data processing system Suth a system can effectively

handle the large information content of imagery at high speeds Evaluation

and verification of coherent optical data processing for this application

-involves theoretical as well as experimental knowledge of the characteristics

and limitations of the system This program had the objective of establishshy

ing techniques and a knowledge base for performing this evaluation and

verification of an optical data processing system designed to reduce

redundancy in picture transmission and to detect specific image features

Theoretically derived Fourier transform characteristics for simple

but representative two-dimensional images serve as a basis for predicting

expected features of actual target images Typical targets to be considered

might include linear patterns representative of rows of agricultural crops

Large area patterns of varyingshapes could represent large scale terrain

features Targetsof simple geometry were analyzed first Further refineshy

ment such as inclusion of random dot patterns of varying sizes or certain

1

0P 002 Q

2

curvilinear patterns ishowever necessary for adequate modeling of

actual imagery

Fourier transformation and spatial filtering of coherent optical

images is readily accomplished in theory and in the laboratory The

effect of various parameters such as optical aperture incidence angles

-the transparency assumption and the thin lens approximation on resolution

and performance of the optical data processing system were predicted and

tested An exhaustive parametric evaluation was not done however those

parameters shown to be most critical to the system operation were

evaluated thoroughly

Thus the program consisted of analytical and experimental evaluation

of Fourier and correlation plane features in an optical data processing

system for the purpose of redundancy reduction and pattern recognition

Figure 1 shows pictorially the main features of the program

The following tasks were to be accomplished infulfillment of the

proposed optical data processingresearch effort

Theoretical analysis

Determine Fourier and correlation plane features to be expected

from simple but representative target models

Determine expected parametric limitations as related to feature

extraction in the Fourier and correlation planes

Study briefly detector geometry requirements as related to

feature geometries -

Investigate methods for combined analysis of Fourier and

correlation plane information

ORIGINAL PAGE IS OP POOR QUALM

3

REPRESENTATIVE COMJPARISON GFE

TARGET gt- TARGET

MODELS FILM

THEORETICAL PAR METER EXPERIMfNTAL

ANALYSIS VARIATION ANALYSIS

(Fourier (Pupil function - (coherent

transform image size laser

correlation wavelength processing)

spatial etc) filtering) _

PREDICTED ACTUAL

FEATURES COMPARATIVE FEATURES

EVALUATION

FEATURE UTILIZATION (comparison of features for various targets)

ODF

GOAL

EVALUATION (redundancy reduction pattern classification)

Figure 1 Flow Chart for Optical Data Processing Study

4

Experimental verification

Using GFE target film verify actual Fourier and correlation

plane features for several target classifications

Compare experimental and theoretical features for representative

targets

Implement and evaluate candidate methods for simultaneous analysis

of Fourier and correlation plane features

20 THEORETICAL ANALYSIS

The development of coherent light sources has made possible the

processing of data using optical methods That such processing methods

as Fourier transformation correlation convolution and filtering can

be achieved optically is not obvious and-needs further justification It

is the purpose of this section to present a concise theoretical development

showing that these processing methods can be implemented optically and

to point out practical limitations to laboratory implementation of

theoretically valid results

No attempt is made to be complete in the description of the properties

of coherent light Rather the emphasis willbe on techniques important

to the goals of this contract Additionally the presentation is

intended to be a concise reference useful to those persons familiar to

some extent with coherent light systems and the mathematical development

of Fourier transforms All the information is available in scattered

references but nowhere is it available in as concise and readable (hopeshy

fully) a form as presented here

Since light is a form of electromagnetic energy a fundamental

starting point for its description is Maxwells equations Through a

series of assumptions (most of which can be imposed on a real system) and

approximations the development leads to the Helmholtz equation and

then the Fourier transforming properties of lenses The assumptions and

approximations are summarized in table form along with the result for

easy reference

Fourier transformation leads logically to correlation convolution

and filtering Theoretical development of these operations is given

52aIGINAL PAGE IS OF POOR QUALICY

The problems associated with the use of practical systems for

data input recording and filtering are di-scussed briefly along with

parametric limitations

Finally a brief theoretical introduction to advanced analysis

methods which look at the fine structure of the optical correlation

-plane isgiven

7

MAXWELLS EQUATIONS THE HELMHOLTZ EQUATION AND THE

FOURIER TRANSFORMING PROPERTIES OF LENSES

Beginning with Maxwells equations for a source free medium- (Assumption

-VxfE X 0Vx~

It is convenient to use the temporal Fourier transforms of B amp D

to clear the time derivatives ie

A A A

VX 6(v) 2- r vx H(6 Y 4v ^() -zrrtgt0

where EM and Eand$ are Fourier transform pairsand

Next weassume a non-dispersive (uniform) medium so the dependence

on V can be dropped (Assumption 2)

Further if the medium is isotropic and linear we have (Assumption 3) A 4 A

t_ (3)

Otherwise e and are second rank tensors

From the differential equations in (2)we obtain the

VECTOR V f 4-4 k 0 HELMHOLTZ o EQUATIONS H ()

For a three dimensional medium (such as an optical system) solution

of the Vector Helmholtz Equations involves simultaneous solution of six

scalar differential equations subject to a set of boundary conditions

8

Solution of Vector Helmholtz Equations is impossible except for a

few (impractical) cases eg plane wave incident on perfect thin

conducting half-plane

Scalar Approximation - Assume the optical phenomenon of interest

is adequately described by a scalar quantity Note the optical

phenomenon of interest is normally the magnitude of the electric field

vector expressed as a function of X Y and Z coordinates and either time

or frequency

The scalar approximation results in the

SCALAR 2 tS HELMHOLTZ V4 plusmn+ 4 kN -EQUATION

where - $V and 4C t)= _ - 44x9 ) ()

4 isreal cB is generally complex

Ifwe assume a monochromatic field with temporal frequency

-V(Assumption 4)

then cf can be represented by

where W v is a general complex spatial amplitude function

For a plane wave has the formAx

trrcs pYj 91)

4shyz7sr ZA)-jtX

9

then a7 X- 7 +

The plane wave form of satisfies the scalar Helmholtz

equation if we impose the condition

- wavenumber

optical wavelength

itcan be shown thata sum of planewaves also satisfies the scalar

Helmholtz equation ieh

where - wavenumber for nth planewave

and = for all n

By taking this line of reasoning one step further a continuous

sum of planewaves also satisfies the scalar Helmholtz equation ie

(()

Significance - Any optical function which can be represented as a

sum of planewaves will satisfy the scalar Helmholtz equation

Assumptions(MEP to this point (cm TCAt-M) pFtlP)

1 source-free 1 adequately represented as a scalar quantity

2 isotropic 2 monochromatic

3 linEir 3 can be represented as a summation

4 uniform (non-dispersive) of plane-waves

[0

Propagation of Optical Fields

Begin with the scalar Helmholtz equation given by equation (6)

Define Px )= P(xL 2)e [is-) to separate temporal and spatial dependence (This form also implies a

monochromatic field) with PCxnY) being the complex amplitude of

the field

Can verify that v ) also satisfies the scalar Helmholtz

equation ie

tAt

Solve the boundary value problem for the flel9d T (X

given 4 (oio) as one of the boundary conditions The result is

the Rayleigh-Sommerfeld integralA- J1 SJ Z ---M i t 07)

where s ( +-(I +5--Two approximations are now made to simplify (17) (See Figure 2)

Approximation 1 ( A gtgt i ie distance s is much greater than the

optical wavelength

Then we have the result known as Huygens Principle

A5LAamp1Jy(X 770 CO-S(Z 1s C IS

2 PRoPA C-1177Q ofr cr4t- pIELZD-S

weighted sum of spherical wavesthat isthe field at (XY 2) is a

emanating from o

assumeApproximation 2 (Fresnel approximation) at Z = d (Figure 2)

the size of the regions ofinterest in either plane is small compared to

d ie

then costds) i

and the exponential term becomes approximately

4_ -S= CIE 4- x- shy

4- ) -iY f 4

12

Since 4 (x-(t--) are small compared to d we can neglect the higher

order terms and

1for exponent S i+ Ccj ( i~

Substituting (20) into (18) gives

Equation (21) is the result of the Fresnel approximation and holds in

the region close to the optical axis

Recognize that (21) is (See Appendix A) e times the

Fresnel transform of -

The constant phase term is usually ignored and the result is that if the

optical field is known in a given plane it can be found in another plane

by Fresnel transformation

COMMENT The Fresnel approximation holds much better than expected

The reason is that for images with low spatial frequencies

there is no longer a need to restrict the regions of interest to be close

to the optical axis Most images of interest will fall in this category

Fourier Properties of Lenses

Transparency Assumption - Assume a thin lens has t(X Y) transmission

function consisting of the product of a pupil function and a pure phase

term ie

04)tj

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 5: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

2

curvilinear patterns ishowever necessary for adequate modeling of

actual imagery

Fourier transformation and spatial filtering of coherent optical

images is readily accomplished in theory and in the laboratory The

effect of various parameters such as optical aperture incidence angles

-the transparency assumption and the thin lens approximation on resolution

and performance of the optical data processing system were predicted and

tested An exhaustive parametric evaluation was not done however those

parameters shown to be most critical to the system operation were

evaluated thoroughly

Thus the program consisted of analytical and experimental evaluation

of Fourier and correlation plane features in an optical data processing

system for the purpose of redundancy reduction and pattern recognition

Figure 1 shows pictorially the main features of the program

The following tasks were to be accomplished infulfillment of the

proposed optical data processingresearch effort

Theoretical analysis

Determine Fourier and correlation plane features to be expected

from simple but representative target models

Determine expected parametric limitations as related to feature

extraction in the Fourier and correlation planes

Study briefly detector geometry requirements as related to

feature geometries -

Investigate methods for combined analysis of Fourier and

correlation plane information

ORIGINAL PAGE IS OP POOR QUALM

3

REPRESENTATIVE COMJPARISON GFE

TARGET gt- TARGET

MODELS FILM

THEORETICAL PAR METER EXPERIMfNTAL

ANALYSIS VARIATION ANALYSIS

(Fourier (Pupil function - (coherent

transform image size laser

correlation wavelength processing)

spatial etc) filtering) _

PREDICTED ACTUAL

FEATURES COMPARATIVE FEATURES

EVALUATION

FEATURE UTILIZATION (comparison of features for various targets)

ODF

GOAL

EVALUATION (redundancy reduction pattern classification)

Figure 1 Flow Chart for Optical Data Processing Study

4

Experimental verification

Using GFE target film verify actual Fourier and correlation

plane features for several target classifications

Compare experimental and theoretical features for representative

targets

Implement and evaluate candidate methods for simultaneous analysis

of Fourier and correlation plane features

20 THEORETICAL ANALYSIS

The development of coherent light sources has made possible the

processing of data using optical methods That such processing methods

as Fourier transformation correlation convolution and filtering can

be achieved optically is not obvious and-needs further justification It

is the purpose of this section to present a concise theoretical development

showing that these processing methods can be implemented optically and

to point out practical limitations to laboratory implementation of

theoretically valid results

No attempt is made to be complete in the description of the properties

of coherent light Rather the emphasis willbe on techniques important

to the goals of this contract Additionally the presentation is

intended to be a concise reference useful to those persons familiar to

some extent with coherent light systems and the mathematical development

of Fourier transforms All the information is available in scattered

references but nowhere is it available in as concise and readable (hopeshy

fully) a form as presented here

Since light is a form of electromagnetic energy a fundamental

starting point for its description is Maxwells equations Through a

series of assumptions (most of which can be imposed on a real system) and

approximations the development leads to the Helmholtz equation and

then the Fourier transforming properties of lenses The assumptions and

approximations are summarized in table form along with the result for

easy reference

Fourier transformation leads logically to correlation convolution

and filtering Theoretical development of these operations is given

52aIGINAL PAGE IS OF POOR QUALICY

The problems associated with the use of practical systems for

data input recording and filtering are di-scussed briefly along with

parametric limitations

Finally a brief theoretical introduction to advanced analysis

methods which look at the fine structure of the optical correlation

-plane isgiven

7

MAXWELLS EQUATIONS THE HELMHOLTZ EQUATION AND THE

FOURIER TRANSFORMING PROPERTIES OF LENSES

Beginning with Maxwells equations for a source free medium- (Assumption

-VxfE X 0Vx~

It is convenient to use the temporal Fourier transforms of B amp D

to clear the time derivatives ie

A A A

VX 6(v) 2- r vx H(6 Y 4v ^() -zrrtgt0

where EM and Eand$ are Fourier transform pairsand

Next weassume a non-dispersive (uniform) medium so the dependence

on V can be dropped (Assumption 2)

Further if the medium is isotropic and linear we have (Assumption 3) A 4 A

t_ (3)

Otherwise e and are second rank tensors

From the differential equations in (2)we obtain the

VECTOR V f 4-4 k 0 HELMHOLTZ o EQUATIONS H ()

For a three dimensional medium (such as an optical system) solution

of the Vector Helmholtz Equations involves simultaneous solution of six

scalar differential equations subject to a set of boundary conditions

8

Solution of Vector Helmholtz Equations is impossible except for a

few (impractical) cases eg plane wave incident on perfect thin

conducting half-plane

Scalar Approximation - Assume the optical phenomenon of interest

is adequately described by a scalar quantity Note the optical

phenomenon of interest is normally the magnitude of the electric field

vector expressed as a function of X Y and Z coordinates and either time

or frequency

The scalar approximation results in the

SCALAR 2 tS HELMHOLTZ V4 plusmn+ 4 kN -EQUATION

where - $V and 4C t)= _ - 44x9 ) ()

4 isreal cB is generally complex

Ifwe assume a monochromatic field with temporal frequency

-V(Assumption 4)

then cf can be represented by

where W v is a general complex spatial amplitude function

For a plane wave has the formAx

trrcs pYj 91)

4shyz7sr ZA)-jtX

9

then a7 X- 7 +

The plane wave form of satisfies the scalar Helmholtz

equation if we impose the condition

- wavenumber

optical wavelength

itcan be shown thata sum of planewaves also satisfies the scalar

Helmholtz equation ieh

where - wavenumber for nth planewave

and = for all n

By taking this line of reasoning one step further a continuous

sum of planewaves also satisfies the scalar Helmholtz equation ie

(()

Significance - Any optical function which can be represented as a

sum of planewaves will satisfy the scalar Helmholtz equation

Assumptions(MEP to this point (cm TCAt-M) pFtlP)

1 source-free 1 adequately represented as a scalar quantity

2 isotropic 2 monochromatic

3 linEir 3 can be represented as a summation

4 uniform (non-dispersive) of plane-waves

[0

Propagation of Optical Fields

Begin with the scalar Helmholtz equation given by equation (6)

Define Px )= P(xL 2)e [is-) to separate temporal and spatial dependence (This form also implies a

monochromatic field) with PCxnY) being the complex amplitude of

the field

Can verify that v ) also satisfies the scalar Helmholtz

equation ie

tAt

Solve the boundary value problem for the flel9d T (X

given 4 (oio) as one of the boundary conditions The result is

the Rayleigh-Sommerfeld integralA- J1 SJ Z ---M i t 07)

where s ( +-(I +5--Two approximations are now made to simplify (17) (See Figure 2)

Approximation 1 ( A gtgt i ie distance s is much greater than the

optical wavelength

Then we have the result known as Huygens Principle

A5LAamp1Jy(X 770 CO-S(Z 1s C IS

2 PRoPA C-1177Q ofr cr4t- pIELZD-S

weighted sum of spherical wavesthat isthe field at (XY 2) is a

emanating from o

assumeApproximation 2 (Fresnel approximation) at Z = d (Figure 2)

the size of the regions ofinterest in either plane is small compared to

d ie

then costds) i

and the exponential term becomes approximately

4_ -S= CIE 4- x- shy

4- ) -iY f 4

12

Since 4 (x-(t--) are small compared to d we can neglect the higher

order terms and

1for exponent S i+ Ccj ( i~

Substituting (20) into (18) gives

Equation (21) is the result of the Fresnel approximation and holds in

the region close to the optical axis

Recognize that (21) is (See Appendix A) e times the

Fresnel transform of -

The constant phase term is usually ignored and the result is that if the

optical field is known in a given plane it can be found in another plane

by Fresnel transformation

COMMENT The Fresnel approximation holds much better than expected

The reason is that for images with low spatial frequencies

there is no longer a need to restrict the regions of interest to be close

to the optical axis Most images of interest will fall in this category

Fourier Properties of Lenses

Transparency Assumption - Assume a thin lens has t(X Y) transmission

function consisting of the product of a pupil function and a pure phase

term ie

04)tj

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 6: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

3

REPRESENTATIVE COMJPARISON GFE

TARGET gt- TARGET

MODELS FILM

THEORETICAL PAR METER EXPERIMfNTAL

ANALYSIS VARIATION ANALYSIS

(Fourier (Pupil function - (coherent

transform image size laser

correlation wavelength processing)

spatial etc) filtering) _

PREDICTED ACTUAL

FEATURES COMPARATIVE FEATURES

EVALUATION

FEATURE UTILIZATION (comparison of features for various targets)

ODF

GOAL

EVALUATION (redundancy reduction pattern classification)

Figure 1 Flow Chart for Optical Data Processing Study

4

Experimental verification

Using GFE target film verify actual Fourier and correlation

plane features for several target classifications

Compare experimental and theoretical features for representative

targets

Implement and evaluate candidate methods for simultaneous analysis

of Fourier and correlation plane features

20 THEORETICAL ANALYSIS

The development of coherent light sources has made possible the

processing of data using optical methods That such processing methods

as Fourier transformation correlation convolution and filtering can

be achieved optically is not obvious and-needs further justification It

is the purpose of this section to present a concise theoretical development

showing that these processing methods can be implemented optically and

to point out practical limitations to laboratory implementation of

theoretically valid results

No attempt is made to be complete in the description of the properties

of coherent light Rather the emphasis willbe on techniques important

to the goals of this contract Additionally the presentation is

intended to be a concise reference useful to those persons familiar to

some extent with coherent light systems and the mathematical development

of Fourier transforms All the information is available in scattered

references but nowhere is it available in as concise and readable (hopeshy

fully) a form as presented here

Since light is a form of electromagnetic energy a fundamental

starting point for its description is Maxwells equations Through a

series of assumptions (most of which can be imposed on a real system) and

approximations the development leads to the Helmholtz equation and

then the Fourier transforming properties of lenses The assumptions and

approximations are summarized in table form along with the result for

easy reference

Fourier transformation leads logically to correlation convolution

and filtering Theoretical development of these operations is given

52aIGINAL PAGE IS OF POOR QUALICY

The problems associated with the use of practical systems for

data input recording and filtering are di-scussed briefly along with

parametric limitations

Finally a brief theoretical introduction to advanced analysis

methods which look at the fine structure of the optical correlation

-plane isgiven

7

MAXWELLS EQUATIONS THE HELMHOLTZ EQUATION AND THE

FOURIER TRANSFORMING PROPERTIES OF LENSES

Beginning with Maxwells equations for a source free medium- (Assumption

-VxfE X 0Vx~

It is convenient to use the temporal Fourier transforms of B amp D

to clear the time derivatives ie

A A A

VX 6(v) 2- r vx H(6 Y 4v ^() -zrrtgt0

where EM and Eand$ are Fourier transform pairsand

Next weassume a non-dispersive (uniform) medium so the dependence

on V can be dropped (Assumption 2)

Further if the medium is isotropic and linear we have (Assumption 3) A 4 A

t_ (3)

Otherwise e and are second rank tensors

From the differential equations in (2)we obtain the

VECTOR V f 4-4 k 0 HELMHOLTZ o EQUATIONS H ()

For a three dimensional medium (such as an optical system) solution

of the Vector Helmholtz Equations involves simultaneous solution of six

scalar differential equations subject to a set of boundary conditions

8

Solution of Vector Helmholtz Equations is impossible except for a

few (impractical) cases eg plane wave incident on perfect thin

conducting half-plane

Scalar Approximation - Assume the optical phenomenon of interest

is adequately described by a scalar quantity Note the optical

phenomenon of interest is normally the magnitude of the electric field

vector expressed as a function of X Y and Z coordinates and either time

or frequency

The scalar approximation results in the

SCALAR 2 tS HELMHOLTZ V4 plusmn+ 4 kN -EQUATION

where - $V and 4C t)= _ - 44x9 ) ()

4 isreal cB is generally complex

Ifwe assume a monochromatic field with temporal frequency

-V(Assumption 4)

then cf can be represented by

where W v is a general complex spatial amplitude function

For a plane wave has the formAx

trrcs pYj 91)

4shyz7sr ZA)-jtX

9

then a7 X- 7 +

The plane wave form of satisfies the scalar Helmholtz

equation if we impose the condition

- wavenumber

optical wavelength

itcan be shown thata sum of planewaves also satisfies the scalar

Helmholtz equation ieh

where - wavenumber for nth planewave

and = for all n

By taking this line of reasoning one step further a continuous

sum of planewaves also satisfies the scalar Helmholtz equation ie

(()

Significance - Any optical function which can be represented as a

sum of planewaves will satisfy the scalar Helmholtz equation

Assumptions(MEP to this point (cm TCAt-M) pFtlP)

1 source-free 1 adequately represented as a scalar quantity

2 isotropic 2 monochromatic

3 linEir 3 can be represented as a summation

4 uniform (non-dispersive) of plane-waves

[0

Propagation of Optical Fields

Begin with the scalar Helmholtz equation given by equation (6)

Define Px )= P(xL 2)e [is-) to separate temporal and spatial dependence (This form also implies a

monochromatic field) with PCxnY) being the complex amplitude of

the field

Can verify that v ) also satisfies the scalar Helmholtz

equation ie

tAt

Solve the boundary value problem for the flel9d T (X

given 4 (oio) as one of the boundary conditions The result is

the Rayleigh-Sommerfeld integralA- J1 SJ Z ---M i t 07)

where s ( +-(I +5--Two approximations are now made to simplify (17) (See Figure 2)

Approximation 1 ( A gtgt i ie distance s is much greater than the

optical wavelength

Then we have the result known as Huygens Principle

A5LAamp1Jy(X 770 CO-S(Z 1s C IS

2 PRoPA C-1177Q ofr cr4t- pIELZD-S

weighted sum of spherical wavesthat isthe field at (XY 2) is a

emanating from o

assumeApproximation 2 (Fresnel approximation) at Z = d (Figure 2)

the size of the regions ofinterest in either plane is small compared to

d ie

then costds) i

and the exponential term becomes approximately

4_ -S= CIE 4- x- shy

4- ) -iY f 4

12

Since 4 (x-(t--) are small compared to d we can neglect the higher

order terms and

1for exponent S i+ Ccj ( i~

Substituting (20) into (18) gives

Equation (21) is the result of the Fresnel approximation and holds in

the region close to the optical axis

Recognize that (21) is (See Appendix A) e times the

Fresnel transform of -

The constant phase term is usually ignored and the result is that if the

optical field is known in a given plane it can be found in another plane

by Fresnel transformation

COMMENT The Fresnel approximation holds much better than expected

The reason is that for images with low spatial frequencies

there is no longer a need to restrict the regions of interest to be close

to the optical axis Most images of interest will fall in this category

Fourier Properties of Lenses

Transparency Assumption - Assume a thin lens has t(X Y) transmission

function consisting of the product of a pupil function and a pure phase

term ie

04)tj

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 7: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

4

Experimental verification

Using GFE target film verify actual Fourier and correlation

plane features for several target classifications

Compare experimental and theoretical features for representative

targets

Implement and evaluate candidate methods for simultaneous analysis

of Fourier and correlation plane features

20 THEORETICAL ANALYSIS

The development of coherent light sources has made possible the

processing of data using optical methods That such processing methods

as Fourier transformation correlation convolution and filtering can

be achieved optically is not obvious and-needs further justification It

is the purpose of this section to present a concise theoretical development

showing that these processing methods can be implemented optically and

to point out practical limitations to laboratory implementation of

theoretically valid results

No attempt is made to be complete in the description of the properties

of coherent light Rather the emphasis willbe on techniques important

to the goals of this contract Additionally the presentation is

intended to be a concise reference useful to those persons familiar to

some extent with coherent light systems and the mathematical development

of Fourier transforms All the information is available in scattered

references but nowhere is it available in as concise and readable (hopeshy

fully) a form as presented here

Since light is a form of electromagnetic energy a fundamental

starting point for its description is Maxwells equations Through a

series of assumptions (most of which can be imposed on a real system) and

approximations the development leads to the Helmholtz equation and

then the Fourier transforming properties of lenses The assumptions and

approximations are summarized in table form along with the result for

easy reference

Fourier transformation leads logically to correlation convolution

and filtering Theoretical development of these operations is given

52aIGINAL PAGE IS OF POOR QUALICY

The problems associated with the use of practical systems for

data input recording and filtering are di-scussed briefly along with

parametric limitations

Finally a brief theoretical introduction to advanced analysis

methods which look at the fine structure of the optical correlation

-plane isgiven

7

MAXWELLS EQUATIONS THE HELMHOLTZ EQUATION AND THE

FOURIER TRANSFORMING PROPERTIES OF LENSES

Beginning with Maxwells equations for a source free medium- (Assumption

-VxfE X 0Vx~

It is convenient to use the temporal Fourier transforms of B amp D

to clear the time derivatives ie

A A A

VX 6(v) 2- r vx H(6 Y 4v ^() -zrrtgt0

where EM and Eand$ are Fourier transform pairsand

Next weassume a non-dispersive (uniform) medium so the dependence

on V can be dropped (Assumption 2)

Further if the medium is isotropic and linear we have (Assumption 3) A 4 A

t_ (3)

Otherwise e and are second rank tensors

From the differential equations in (2)we obtain the

VECTOR V f 4-4 k 0 HELMHOLTZ o EQUATIONS H ()

For a three dimensional medium (such as an optical system) solution

of the Vector Helmholtz Equations involves simultaneous solution of six

scalar differential equations subject to a set of boundary conditions

8

Solution of Vector Helmholtz Equations is impossible except for a

few (impractical) cases eg plane wave incident on perfect thin

conducting half-plane

Scalar Approximation - Assume the optical phenomenon of interest

is adequately described by a scalar quantity Note the optical

phenomenon of interest is normally the magnitude of the electric field

vector expressed as a function of X Y and Z coordinates and either time

or frequency

The scalar approximation results in the

SCALAR 2 tS HELMHOLTZ V4 plusmn+ 4 kN -EQUATION

where - $V and 4C t)= _ - 44x9 ) ()

4 isreal cB is generally complex

Ifwe assume a monochromatic field with temporal frequency

-V(Assumption 4)

then cf can be represented by

where W v is a general complex spatial amplitude function

For a plane wave has the formAx

trrcs pYj 91)

4shyz7sr ZA)-jtX

9

then a7 X- 7 +

The plane wave form of satisfies the scalar Helmholtz

equation if we impose the condition

- wavenumber

optical wavelength

itcan be shown thata sum of planewaves also satisfies the scalar

Helmholtz equation ieh

where - wavenumber for nth planewave

and = for all n

By taking this line of reasoning one step further a continuous

sum of planewaves also satisfies the scalar Helmholtz equation ie

(()

Significance - Any optical function which can be represented as a

sum of planewaves will satisfy the scalar Helmholtz equation

Assumptions(MEP to this point (cm TCAt-M) pFtlP)

1 source-free 1 adequately represented as a scalar quantity

2 isotropic 2 monochromatic

3 linEir 3 can be represented as a summation

4 uniform (non-dispersive) of plane-waves

[0

Propagation of Optical Fields

Begin with the scalar Helmholtz equation given by equation (6)

Define Px )= P(xL 2)e [is-) to separate temporal and spatial dependence (This form also implies a

monochromatic field) with PCxnY) being the complex amplitude of

the field

Can verify that v ) also satisfies the scalar Helmholtz

equation ie

tAt

Solve the boundary value problem for the flel9d T (X

given 4 (oio) as one of the boundary conditions The result is

the Rayleigh-Sommerfeld integralA- J1 SJ Z ---M i t 07)

where s ( +-(I +5--Two approximations are now made to simplify (17) (See Figure 2)

Approximation 1 ( A gtgt i ie distance s is much greater than the

optical wavelength

Then we have the result known as Huygens Principle

A5LAamp1Jy(X 770 CO-S(Z 1s C IS

2 PRoPA C-1177Q ofr cr4t- pIELZD-S

weighted sum of spherical wavesthat isthe field at (XY 2) is a

emanating from o

assumeApproximation 2 (Fresnel approximation) at Z = d (Figure 2)

the size of the regions ofinterest in either plane is small compared to

d ie

then costds) i

and the exponential term becomes approximately

4_ -S= CIE 4- x- shy

4- ) -iY f 4

12

Since 4 (x-(t--) are small compared to d we can neglect the higher

order terms and

1for exponent S i+ Ccj ( i~

Substituting (20) into (18) gives

Equation (21) is the result of the Fresnel approximation and holds in

the region close to the optical axis

Recognize that (21) is (See Appendix A) e times the

Fresnel transform of -

The constant phase term is usually ignored and the result is that if the

optical field is known in a given plane it can be found in another plane

by Fresnel transformation

COMMENT The Fresnel approximation holds much better than expected

The reason is that for images with low spatial frequencies

there is no longer a need to restrict the regions of interest to be close

to the optical axis Most images of interest will fall in this category

Fourier Properties of Lenses

Transparency Assumption - Assume a thin lens has t(X Y) transmission

function consisting of the product of a pupil function and a pure phase

term ie

04)tj

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 8: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

20 THEORETICAL ANALYSIS

The development of coherent light sources has made possible the

processing of data using optical methods That such processing methods

as Fourier transformation correlation convolution and filtering can

be achieved optically is not obvious and-needs further justification It

is the purpose of this section to present a concise theoretical development

showing that these processing methods can be implemented optically and

to point out practical limitations to laboratory implementation of

theoretically valid results

No attempt is made to be complete in the description of the properties

of coherent light Rather the emphasis willbe on techniques important

to the goals of this contract Additionally the presentation is

intended to be a concise reference useful to those persons familiar to

some extent with coherent light systems and the mathematical development

of Fourier transforms All the information is available in scattered

references but nowhere is it available in as concise and readable (hopeshy

fully) a form as presented here

Since light is a form of electromagnetic energy a fundamental

starting point for its description is Maxwells equations Through a

series of assumptions (most of which can be imposed on a real system) and

approximations the development leads to the Helmholtz equation and

then the Fourier transforming properties of lenses The assumptions and

approximations are summarized in table form along with the result for

easy reference

Fourier transformation leads logically to correlation convolution

and filtering Theoretical development of these operations is given

52aIGINAL PAGE IS OF POOR QUALICY

The problems associated with the use of practical systems for

data input recording and filtering are di-scussed briefly along with

parametric limitations

Finally a brief theoretical introduction to advanced analysis

methods which look at the fine structure of the optical correlation

-plane isgiven

7

MAXWELLS EQUATIONS THE HELMHOLTZ EQUATION AND THE

FOURIER TRANSFORMING PROPERTIES OF LENSES

Beginning with Maxwells equations for a source free medium- (Assumption

-VxfE X 0Vx~

It is convenient to use the temporal Fourier transforms of B amp D

to clear the time derivatives ie

A A A

VX 6(v) 2- r vx H(6 Y 4v ^() -zrrtgt0

where EM and Eand$ are Fourier transform pairsand

Next weassume a non-dispersive (uniform) medium so the dependence

on V can be dropped (Assumption 2)

Further if the medium is isotropic and linear we have (Assumption 3) A 4 A

t_ (3)

Otherwise e and are second rank tensors

From the differential equations in (2)we obtain the

VECTOR V f 4-4 k 0 HELMHOLTZ o EQUATIONS H ()

For a three dimensional medium (such as an optical system) solution

of the Vector Helmholtz Equations involves simultaneous solution of six

scalar differential equations subject to a set of boundary conditions

8

Solution of Vector Helmholtz Equations is impossible except for a

few (impractical) cases eg plane wave incident on perfect thin

conducting half-plane

Scalar Approximation - Assume the optical phenomenon of interest

is adequately described by a scalar quantity Note the optical

phenomenon of interest is normally the magnitude of the electric field

vector expressed as a function of X Y and Z coordinates and either time

or frequency

The scalar approximation results in the

SCALAR 2 tS HELMHOLTZ V4 plusmn+ 4 kN -EQUATION

where - $V and 4C t)= _ - 44x9 ) ()

4 isreal cB is generally complex

Ifwe assume a monochromatic field with temporal frequency

-V(Assumption 4)

then cf can be represented by

where W v is a general complex spatial amplitude function

For a plane wave has the formAx

trrcs pYj 91)

4shyz7sr ZA)-jtX

9

then a7 X- 7 +

The plane wave form of satisfies the scalar Helmholtz

equation if we impose the condition

- wavenumber

optical wavelength

itcan be shown thata sum of planewaves also satisfies the scalar

Helmholtz equation ieh

where - wavenumber for nth planewave

and = for all n

By taking this line of reasoning one step further a continuous

sum of planewaves also satisfies the scalar Helmholtz equation ie

(()

Significance - Any optical function which can be represented as a

sum of planewaves will satisfy the scalar Helmholtz equation

Assumptions(MEP to this point (cm TCAt-M) pFtlP)

1 source-free 1 adequately represented as a scalar quantity

2 isotropic 2 monochromatic

3 linEir 3 can be represented as a summation

4 uniform (non-dispersive) of plane-waves

[0

Propagation of Optical Fields

Begin with the scalar Helmholtz equation given by equation (6)

Define Px )= P(xL 2)e [is-) to separate temporal and spatial dependence (This form also implies a

monochromatic field) with PCxnY) being the complex amplitude of

the field

Can verify that v ) also satisfies the scalar Helmholtz

equation ie

tAt

Solve the boundary value problem for the flel9d T (X

given 4 (oio) as one of the boundary conditions The result is

the Rayleigh-Sommerfeld integralA- J1 SJ Z ---M i t 07)

where s ( +-(I +5--Two approximations are now made to simplify (17) (See Figure 2)

Approximation 1 ( A gtgt i ie distance s is much greater than the

optical wavelength

Then we have the result known as Huygens Principle

A5LAamp1Jy(X 770 CO-S(Z 1s C IS

2 PRoPA C-1177Q ofr cr4t- pIELZD-S

weighted sum of spherical wavesthat isthe field at (XY 2) is a

emanating from o

assumeApproximation 2 (Fresnel approximation) at Z = d (Figure 2)

the size of the regions ofinterest in either plane is small compared to

d ie

then costds) i

and the exponential term becomes approximately

4_ -S= CIE 4- x- shy

4- ) -iY f 4

12

Since 4 (x-(t--) are small compared to d we can neglect the higher

order terms and

1for exponent S i+ Ccj ( i~

Substituting (20) into (18) gives

Equation (21) is the result of the Fresnel approximation and holds in

the region close to the optical axis

Recognize that (21) is (See Appendix A) e times the

Fresnel transform of -

The constant phase term is usually ignored and the result is that if the

optical field is known in a given plane it can be found in another plane

by Fresnel transformation

COMMENT The Fresnel approximation holds much better than expected

The reason is that for images with low spatial frequencies

there is no longer a need to restrict the regions of interest to be close

to the optical axis Most images of interest will fall in this category

Fourier Properties of Lenses

Transparency Assumption - Assume a thin lens has t(X Y) transmission

function consisting of the product of a pupil function and a pure phase

term ie

04)tj

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 9: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

The problems associated with the use of practical systems for

data input recording and filtering are di-scussed briefly along with

parametric limitations

Finally a brief theoretical introduction to advanced analysis

methods which look at the fine structure of the optical correlation

-plane isgiven

7

MAXWELLS EQUATIONS THE HELMHOLTZ EQUATION AND THE

FOURIER TRANSFORMING PROPERTIES OF LENSES

Beginning with Maxwells equations for a source free medium- (Assumption

-VxfE X 0Vx~

It is convenient to use the temporal Fourier transforms of B amp D

to clear the time derivatives ie

A A A

VX 6(v) 2- r vx H(6 Y 4v ^() -zrrtgt0

where EM and Eand$ are Fourier transform pairsand

Next weassume a non-dispersive (uniform) medium so the dependence

on V can be dropped (Assumption 2)

Further if the medium is isotropic and linear we have (Assumption 3) A 4 A

t_ (3)

Otherwise e and are second rank tensors

From the differential equations in (2)we obtain the

VECTOR V f 4-4 k 0 HELMHOLTZ o EQUATIONS H ()

For a three dimensional medium (such as an optical system) solution

of the Vector Helmholtz Equations involves simultaneous solution of six

scalar differential equations subject to a set of boundary conditions

8

Solution of Vector Helmholtz Equations is impossible except for a

few (impractical) cases eg plane wave incident on perfect thin

conducting half-plane

Scalar Approximation - Assume the optical phenomenon of interest

is adequately described by a scalar quantity Note the optical

phenomenon of interest is normally the magnitude of the electric field

vector expressed as a function of X Y and Z coordinates and either time

or frequency

The scalar approximation results in the

SCALAR 2 tS HELMHOLTZ V4 plusmn+ 4 kN -EQUATION

where - $V and 4C t)= _ - 44x9 ) ()

4 isreal cB is generally complex

Ifwe assume a monochromatic field with temporal frequency

-V(Assumption 4)

then cf can be represented by

where W v is a general complex spatial amplitude function

For a plane wave has the formAx

trrcs pYj 91)

4shyz7sr ZA)-jtX

9

then a7 X- 7 +

The plane wave form of satisfies the scalar Helmholtz

equation if we impose the condition

- wavenumber

optical wavelength

itcan be shown thata sum of planewaves also satisfies the scalar

Helmholtz equation ieh

where - wavenumber for nth planewave

and = for all n

By taking this line of reasoning one step further a continuous

sum of planewaves also satisfies the scalar Helmholtz equation ie

(()

Significance - Any optical function which can be represented as a

sum of planewaves will satisfy the scalar Helmholtz equation

Assumptions(MEP to this point (cm TCAt-M) pFtlP)

1 source-free 1 adequately represented as a scalar quantity

2 isotropic 2 monochromatic

3 linEir 3 can be represented as a summation

4 uniform (non-dispersive) of plane-waves

[0

Propagation of Optical Fields

Begin with the scalar Helmholtz equation given by equation (6)

Define Px )= P(xL 2)e [is-) to separate temporal and spatial dependence (This form also implies a

monochromatic field) with PCxnY) being the complex amplitude of

the field

Can verify that v ) also satisfies the scalar Helmholtz

equation ie

tAt

Solve the boundary value problem for the flel9d T (X

given 4 (oio) as one of the boundary conditions The result is

the Rayleigh-Sommerfeld integralA- J1 SJ Z ---M i t 07)

where s ( +-(I +5--Two approximations are now made to simplify (17) (See Figure 2)

Approximation 1 ( A gtgt i ie distance s is much greater than the

optical wavelength

Then we have the result known as Huygens Principle

A5LAamp1Jy(X 770 CO-S(Z 1s C IS

2 PRoPA C-1177Q ofr cr4t- pIELZD-S

weighted sum of spherical wavesthat isthe field at (XY 2) is a

emanating from o

assumeApproximation 2 (Fresnel approximation) at Z = d (Figure 2)

the size of the regions ofinterest in either plane is small compared to

d ie

then costds) i

and the exponential term becomes approximately

4_ -S= CIE 4- x- shy

4- ) -iY f 4

12

Since 4 (x-(t--) are small compared to d we can neglect the higher

order terms and

1for exponent S i+ Ccj ( i~

Substituting (20) into (18) gives

Equation (21) is the result of the Fresnel approximation and holds in

the region close to the optical axis

Recognize that (21) is (See Appendix A) e times the

Fresnel transform of -

The constant phase term is usually ignored and the result is that if the

optical field is known in a given plane it can be found in another plane

by Fresnel transformation

COMMENT The Fresnel approximation holds much better than expected

The reason is that for images with low spatial frequencies

there is no longer a need to restrict the regions of interest to be close

to the optical axis Most images of interest will fall in this category

Fourier Properties of Lenses

Transparency Assumption - Assume a thin lens has t(X Y) transmission

function consisting of the product of a pupil function and a pure phase

term ie

04)tj

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 10: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

7

MAXWELLS EQUATIONS THE HELMHOLTZ EQUATION AND THE

FOURIER TRANSFORMING PROPERTIES OF LENSES

Beginning with Maxwells equations for a source free medium- (Assumption

-VxfE X 0Vx~

It is convenient to use the temporal Fourier transforms of B amp D

to clear the time derivatives ie

A A A

VX 6(v) 2- r vx H(6 Y 4v ^() -zrrtgt0

where EM and Eand$ are Fourier transform pairsand

Next weassume a non-dispersive (uniform) medium so the dependence

on V can be dropped (Assumption 2)

Further if the medium is isotropic and linear we have (Assumption 3) A 4 A

t_ (3)

Otherwise e and are second rank tensors

From the differential equations in (2)we obtain the

VECTOR V f 4-4 k 0 HELMHOLTZ o EQUATIONS H ()

For a three dimensional medium (such as an optical system) solution

of the Vector Helmholtz Equations involves simultaneous solution of six

scalar differential equations subject to a set of boundary conditions

8

Solution of Vector Helmholtz Equations is impossible except for a

few (impractical) cases eg plane wave incident on perfect thin

conducting half-plane

Scalar Approximation - Assume the optical phenomenon of interest

is adequately described by a scalar quantity Note the optical

phenomenon of interest is normally the magnitude of the electric field

vector expressed as a function of X Y and Z coordinates and either time

or frequency

The scalar approximation results in the

SCALAR 2 tS HELMHOLTZ V4 plusmn+ 4 kN -EQUATION

where - $V and 4C t)= _ - 44x9 ) ()

4 isreal cB is generally complex

Ifwe assume a monochromatic field with temporal frequency

-V(Assumption 4)

then cf can be represented by

where W v is a general complex spatial amplitude function

For a plane wave has the formAx

trrcs pYj 91)

4shyz7sr ZA)-jtX

9

then a7 X- 7 +

The plane wave form of satisfies the scalar Helmholtz

equation if we impose the condition

- wavenumber

optical wavelength

itcan be shown thata sum of planewaves also satisfies the scalar

Helmholtz equation ieh

where - wavenumber for nth planewave

and = for all n

By taking this line of reasoning one step further a continuous

sum of planewaves also satisfies the scalar Helmholtz equation ie

(()

Significance - Any optical function which can be represented as a

sum of planewaves will satisfy the scalar Helmholtz equation

Assumptions(MEP to this point (cm TCAt-M) pFtlP)

1 source-free 1 adequately represented as a scalar quantity

2 isotropic 2 monochromatic

3 linEir 3 can be represented as a summation

4 uniform (non-dispersive) of plane-waves

[0

Propagation of Optical Fields

Begin with the scalar Helmholtz equation given by equation (6)

Define Px )= P(xL 2)e [is-) to separate temporal and spatial dependence (This form also implies a

monochromatic field) with PCxnY) being the complex amplitude of

the field

Can verify that v ) also satisfies the scalar Helmholtz

equation ie

tAt

Solve the boundary value problem for the flel9d T (X

given 4 (oio) as one of the boundary conditions The result is

the Rayleigh-Sommerfeld integralA- J1 SJ Z ---M i t 07)

where s ( +-(I +5--Two approximations are now made to simplify (17) (See Figure 2)

Approximation 1 ( A gtgt i ie distance s is much greater than the

optical wavelength

Then we have the result known as Huygens Principle

A5LAamp1Jy(X 770 CO-S(Z 1s C IS

2 PRoPA C-1177Q ofr cr4t- pIELZD-S

weighted sum of spherical wavesthat isthe field at (XY 2) is a

emanating from o

assumeApproximation 2 (Fresnel approximation) at Z = d (Figure 2)

the size of the regions ofinterest in either plane is small compared to

d ie

then costds) i

and the exponential term becomes approximately

4_ -S= CIE 4- x- shy

4- ) -iY f 4

12

Since 4 (x-(t--) are small compared to d we can neglect the higher

order terms and

1for exponent S i+ Ccj ( i~

Substituting (20) into (18) gives

Equation (21) is the result of the Fresnel approximation and holds in

the region close to the optical axis

Recognize that (21) is (See Appendix A) e times the

Fresnel transform of -

The constant phase term is usually ignored and the result is that if the

optical field is known in a given plane it can be found in another plane

by Fresnel transformation

COMMENT The Fresnel approximation holds much better than expected

The reason is that for images with low spatial frequencies

there is no longer a need to restrict the regions of interest to be close

to the optical axis Most images of interest will fall in this category

Fourier Properties of Lenses

Transparency Assumption - Assume a thin lens has t(X Y) transmission

function consisting of the product of a pupil function and a pure phase

term ie

04)tj

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 11: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

8

Solution of Vector Helmholtz Equations is impossible except for a

few (impractical) cases eg plane wave incident on perfect thin

conducting half-plane

Scalar Approximation - Assume the optical phenomenon of interest

is adequately described by a scalar quantity Note the optical

phenomenon of interest is normally the magnitude of the electric field

vector expressed as a function of X Y and Z coordinates and either time

or frequency

The scalar approximation results in the

SCALAR 2 tS HELMHOLTZ V4 plusmn+ 4 kN -EQUATION

where - $V and 4C t)= _ - 44x9 ) ()

4 isreal cB is generally complex

Ifwe assume a monochromatic field with temporal frequency

-V(Assumption 4)

then cf can be represented by

where W v is a general complex spatial amplitude function

For a plane wave has the formAx

trrcs pYj 91)

4shyz7sr ZA)-jtX

9

then a7 X- 7 +

The plane wave form of satisfies the scalar Helmholtz

equation if we impose the condition

- wavenumber

optical wavelength

itcan be shown thata sum of planewaves also satisfies the scalar

Helmholtz equation ieh

where - wavenumber for nth planewave

and = for all n

By taking this line of reasoning one step further a continuous

sum of planewaves also satisfies the scalar Helmholtz equation ie

(()

Significance - Any optical function which can be represented as a

sum of planewaves will satisfy the scalar Helmholtz equation

Assumptions(MEP to this point (cm TCAt-M) pFtlP)

1 source-free 1 adequately represented as a scalar quantity

2 isotropic 2 monochromatic

3 linEir 3 can be represented as a summation

4 uniform (non-dispersive) of plane-waves

[0

Propagation of Optical Fields

Begin with the scalar Helmholtz equation given by equation (6)

Define Px )= P(xL 2)e [is-) to separate temporal and spatial dependence (This form also implies a

monochromatic field) with PCxnY) being the complex amplitude of

the field

Can verify that v ) also satisfies the scalar Helmholtz

equation ie

tAt

Solve the boundary value problem for the flel9d T (X

given 4 (oio) as one of the boundary conditions The result is

the Rayleigh-Sommerfeld integralA- J1 SJ Z ---M i t 07)

where s ( +-(I +5--Two approximations are now made to simplify (17) (See Figure 2)

Approximation 1 ( A gtgt i ie distance s is much greater than the

optical wavelength

Then we have the result known as Huygens Principle

A5LAamp1Jy(X 770 CO-S(Z 1s C IS

2 PRoPA C-1177Q ofr cr4t- pIELZD-S

weighted sum of spherical wavesthat isthe field at (XY 2) is a

emanating from o

assumeApproximation 2 (Fresnel approximation) at Z = d (Figure 2)

the size of the regions ofinterest in either plane is small compared to

d ie

then costds) i

and the exponential term becomes approximately

4_ -S= CIE 4- x- shy

4- ) -iY f 4

12

Since 4 (x-(t--) are small compared to d we can neglect the higher

order terms and

1for exponent S i+ Ccj ( i~

Substituting (20) into (18) gives

Equation (21) is the result of the Fresnel approximation and holds in

the region close to the optical axis

Recognize that (21) is (See Appendix A) e times the

Fresnel transform of -

The constant phase term is usually ignored and the result is that if the

optical field is known in a given plane it can be found in another plane

by Fresnel transformation

COMMENT The Fresnel approximation holds much better than expected

The reason is that for images with low spatial frequencies

there is no longer a need to restrict the regions of interest to be close

to the optical axis Most images of interest will fall in this category

Fourier Properties of Lenses

Transparency Assumption - Assume a thin lens has t(X Y) transmission

function consisting of the product of a pupil function and a pure phase

term ie

04)tj

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 12: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

9

then a7 X- 7 +

The plane wave form of satisfies the scalar Helmholtz

equation if we impose the condition

- wavenumber

optical wavelength

itcan be shown thata sum of planewaves also satisfies the scalar

Helmholtz equation ieh

where - wavenumber for nth planewave

and = for all n

By taking this line of reasoning one step further a continuous

sum of planewaves also satisfies the scalar Helmholtz equation ie

(()

Significance - Any optical function which can be represented as a

sum of planewaves will satisfy the scalar Helmholtz equation

Assumptions(MEP to this point (cm TCAt-M) pFtlP)

1 source-free 1 adequately represented as a scalar quantity

2 isotropic 2 monochromatic

3 linEir 3 can be represented as a summation

4 uniform (non-dispersive) of plane-waves

[0

Propagation of Optical Fields

Begin with the scalar Helmholtz equation given by equation (6)

Define Px )= P(xL 2)e [is-) to separate temporal and spatial dependence (This form also implies a

monochromatic field) with PCxnY) being the complex amplitude of

the field

Can verify that v ) also satisfies the scalar Helmholtz

equation ie

tAt

Solve the boundary value problem for the flel9d T (X

given 4 (oio) as one of the boundary conditions The result is

the Rayleigh-Sommerfeld integralA- J1 SJ Z ---M i t 07)

where s ( +-(I +5--Two approximations are now made to simplify (17) (See Figure 2)

Approximation 1 ( A gtgt i ie distance s is much greater than the

optical wavelength

Then we have the result known as Huygens Principle

A5LAamp1Jy(X 770 CO-S(Z 1s C IS

2 PRoPA C-1177Q ofr cr4t- pIELZD-S

weighted sum of spherical wavesthat isthe field at (XY 2) is a

emanating from o

assumeApproximation 2 (Fresnel approximation) at Z = d (Figure 2)

the size of the regions ofinterest in either plane is small compared to

d ie

then costds) i

and the exponential term becomes approximately

4_ -S= CIE 4- x- shy

4- ) -iY f 4

12

Since 4 (x-(t--) are small compared to d we can neglect the higher

order terms and

1for exponent S i+ Ccj ( i~

Substituting (20) into (18) gives

Equation (21) is the result of the Fresnel approximation and holds in

the region close to the optical axis

Recognize that (21) is (See Appendix A) e times the

Fresnel transform of -

The constant phase term is usually ignored and the result is that if the

optical field is known in a given plane it can be found in another plane

by Fresnel transformation

COMMENT The Fresnel approximation holds much better than expected

The reason is that for images with low spatial frequencies

there is no longer a need to restrict the regions of interest to be close

to the optical axis Most images of interest will fall in this category

Fourier Properties of Lenses

Transparency Assumption - Assume a thin lens has t(X Y) transmission

function consisting of the product of a pupil function and a pure phase

term ie

04)tj

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 13: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

[0

Propagation of Optical Fields

Begin with the scalar Helmholtz equation given by equation (6)

Define Px )= P(xL 2)e [is-) to separate temporal and spatial dependence (This form also implies a

monochromatic field) with PCxnY) being the complex amplitude of

the field

Can verify that v ) also satisfies the scalar Helmholtz

equation ie

tAt

Solve the boundary value problem for the flel9d T (X

given 4 (oio) as one of the boundary conditions The result is

the Rayleigh-Sommerfeld integralA- J1 SJ Z ---M i t 07)

where s ( +-(I +5--Two approximations are now made to simplify (17) (See Figure 2)

Approximation 1 ( A gtgt i ie distance s is much greater than the

optical wavelength

Then we have the result known as Huygens Principle

A5LAamp1Jy(X 770 CO-S(Z 1s C IS

2 PRoPA C-1177Q ofr cr4t- pIELZD-S

weighted sum of spherical wavesthat isthe field at (XY 2) is a

emanating from o

assumeApproximation 2 (Fresnel approximation) at Z = d (Figure 2)

the size of the regions ofinterest in either plane is small compared to

d ie

then costds) i

and the exponential term becomes approximately

4_ -S= CIE 4- x- shy

4- ) -iY f 4

12

Since 4 (x-(t--) are small compared to d we can neglect the higher

order terms and

1for exponent S i+ Ccj ( i~

Substituting (20) into (18) gives

Equation (21) is the result of the Fresnel approximation and holds in

the region close to the optical axis

Recognize that (21) is (See Appendix A) e times the

Fresnel transform of -

The constant phase term is usually ignored and the result is that if the

optical field is known in a given plane it can be found in another plane

by Fresnel transformation

COMMENT The Fresnel approximation holds much better than expected

The reason is that for images with low spatial frequencies

there is no longer a need to restrict the regions of interest to be close

to the optical axis Most images of interest will fall in this category

Fourier Properties of Lenses

Transparency Assumption - Assume a thin lens has t(X Y) transmission

function consisting of the product of a pupil function and a pure phase

term ie

04)tj

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 14: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

2 PRoPA C-1177Q ofr cr4t- pIELZD-S

weighted sum of spherical wavesthat isthe field at (XY 2) is a

emanating from o

assumeApproximation 2 (Fresnel approximation) at Z = d (Figure 2)

the size of the regions ofinterest in either plane is small compared to

d ie

then costds) i

and the exponential term becomes approximately

4_ -S= CIE 4- x- shy

4- ) -iY f 4

12

Since 4 (x-(t--) are small compared to d we can neglect the higher

order terms and

1for exponent S i+ Ccj ( i~

Substituting (20) into (18) gives

Equation (21) is the result of the Fresnel approximation and holds in

the region close to the optical axis

Recognize that (21) is (See Appendix A) e times the

Fresnel transform of -

The constant phase term is usually ignored and the result is that if the

optical field is known in a given plane it can be found in another plane

by Fresnel transformation

COMMENT The Fresnel approximation holds much better than expected

The reason is that for images with low spatial frequencies

there is no longer a need to restrict the regions of interest to be close

to the optical axis Most images of interest will fall in this category

Fourier Properties of Lenses

Transparency Assumption - Assume a thin lens has t(X Y) transmission

function consisting of the product of a pupil function and a pure phase

term ie

04)tj

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 15: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

12

Since 4 (x-(t--) are small compared to d we can neglect the higher

order terms and

1for exponent S i+ Ccj ( i~

Substituting (20) into (18) gives

Equation (21) is the result of the Fresnel approximation and holds in

the region close to the optical axis

Recognize that (21) is (See Appendix A) e times the

Fresnel transform of -

The constant phase term is usually ignored and the result is that if the

optical field is known in a given plane it can be found in another plane

by Fresnel transformation

COMMENT The Fresnel approximation holds much better than expected

The reason is that for images with low spatial frequencies

there is no longer a need to restrict the regions of interest to be close

to the optical axis Most images of interest will fall in this category

Fourier Properties of Lenses

Transparency Assumption - Assume a thin lens has t(X Y) transmission

function consisting of the product of a pupil function and a pure phase

term ie

04)tj

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 16: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

13

then the optical fields immediately before and after the lens are

related by

AA

TRANSPARENCY X ASSUMPTION

THIN LENS APPROXIMATION

The thickness d(X Y) of a lens with front and rear surface radii

of curvature R and R2 is given by

Lzshy

dmax is thickness at X =t = 0

Approximate (24) for

X ltK4 x t-i-lt lt

R7z P t

(tsr

by

Now the phase term in (22) is given by

- rk(-i) djx

where

define

n = refractive index of lens material

k = wavenumber = I

focal length

then

Af Ifwe combine the constant term in (29) into the pupil function

given in (22) we have

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 17: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

14

Equation (30) is the transmission function for a thin lens

Now the focal plane response is found by

Incident field a at front side of lens

After lens = LY Infocal plane

Using -( 1) given in (30) and after cancellation of some terms the

result is

FOURIER C)= c = ) TRANSFORM- (Y

This isthe desired result Except for the phase term outside the

integral equation (32) shows that the focal plane response is the

Fourier transform of the product of the pupil function with the incident

field ie

ORIGLN~kn PAGE jg

W POOR RUALIy

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 18: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

COMPLEX FILTERSCONVOLUTION AND CORRELATION

COMPLEX FILTER GENERATION

FIampUft9E 3 CorviPtUX F1Z7E72 7--ri-f

Amplitude in the filter plane (See Figure 3) is the sum of the reference

beam and the Fourier transform of - a x1) ie

4ftj ~+x~ a (3q where Y J includes any pupil function

or A A + ~ tr~X

The photographic film in the filter plane is an energy sensitive medium

thus the transmission of the developed negative is proportional to

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 19: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

16

AA0wSubstituting in for e have

AA

A (37

Through proper development of a positive transparency a transmission

function proportional to JpXj can be obtained Either positive

ornegative transparencies will provide correlation results

COMPLEX FILTERING 0 t -orru

If) L ramp4 9)

FI CU k 4 Coivtrte FItTeven-acshy

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 20: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

17

Figure 4 shows an arrangement for observing the cross correlation

between images 01 Cx and a (X) It also gives the convolution

of the two images

The light amplitude immediately to the right of the spatial filter

is given by

I

MII

-After transforming by lens -L equation (38) gives the following

amplitude distribution in the output plane A 00~

A4 f4 3 (()Y) C~- z fJ

where

FX t X)

Famp A gt )] c~sCCVdeg ampC5A47

LT - ~C0055 OC)7fi L

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 21: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

_______

18

Equation (40) is the desired reshit and for aCxV = 0(z

the resulting autocorrelation shows a strong peak at X= o-PA-

Because the spatial frequency content of most images is low the resulting

autocorrelation function appears simply as a bright spot Energy

detection for this so-called recognition spot is sufficient for distinguishshy

ing gross image differences However when comparing images that are

quite similar it is necessary to examine the fine structure of the

correlation function to aid in distinguishing between these similar

images Examination of the fine structure of the correlation plane requires

magnification sampling and additional processing (probably by computer)

An alternate approach to the vander Lugt method for generation of

optical correlation functions described above is discussed below

Autocorrelation

P 41+9fWe

Figure 5 Power Spectrum Recording

The effect of the lens on the input image s()-) is to produce the

Fourier transform - ( - Photographic film in the Fourier plane

responds to intensity and after development has a transmittance proportional

to

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 22: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

9

Or is proportional to the power spectrum of the original image

If this power spectrum transparency is viewed as shown in Figure 6

Figure 6 Autocorrelation

z~l- COPei-Z4 T0 l

Cross-Correlation

Figure 7 Generation of Cross Power Spectrum

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 23: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

20

Input

Field in Fourier plane

Developed film transmittance

(-fr

Viewing I

Figure 8 Cross CorrelationA

i_1_ L) - )

The relative strength-of the cross correlation is strongly dependent

on the degree of angular alignment inmaking the cross-spectrum transparency

in Figure 7

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 24: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

21

PRACTICAL CONSIDERATIONS

A number of parametric analyses can be derived from limitations

imposed by practical systems and from approximations made in the theoshy

retical development Figures9 throughl4 are described below and provide

parametric variations affecting the Fourier transforming properties of

lenses These figures were also included in Monthly Progress Report No 5

Figure 9 In orderfor no vignetting to occur certain restrictions

must be placed on the input output and lensapertures These relationshy

ships are depicted graphically where f(max)f is the (normalized) output

aperture and r(max)f is the (normalized) input aperture Given a lens

with a particular F-stop r and 0 must-lie below that curve for no

vignetting

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 25: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

-NILLf fj LLLL r

F

]~

riIlS- A- -

II c$ 1L-11 ol

4j I P B~

iii i 1UT2

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 26: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

23

Figure 10 In the transform plane the spatial frequencies do not

increase linearly with the distance from the optical axis The per

cent error in the linearfrequency approximation is shown as a function

of the output aperture size (normalized)

Figure lland FigureI2 These curves were derived using the exact

expressions for the obliquity factor and the distance from-the object

point to the image point(ie the Fresnel approximations were not

made) Figure IIshows the restrictions on input and output apertures

(normalized) required to achieve a given maximum amplitude error in the

transform plane Figure12 shows the phase term which multiplies the

Fourier Transform expression for various values of focal length f

Figure Axial misalignment of the input plane from the lens

results in a-phase error in the transform plane shown for various

values d of maximum alignment error

Figure 14 This figure shows the limits on frequency resolution

for a perfectly aligned system The limit is determined by the size of

the aperture in the input plane

The following parametric considerations apply to complex filtering

Minimum reference beam angle - With reference to Figures 3 and 4

and equation (40) if both a y )anand x have width W

then separation of terms in the-output plane of Figure 3 will be

achieved if -0 45

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 27: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

--

IT F7 plusmn 7gt LIlv[ 72~~~~

~~rt[ f rI

f

liii qf11 ~~~l~d4

[ i J

ij IJiTtL n

I J1ol

iIj L I [fF i~i

jrc I)i I ltI ll IJ

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 28: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

FL1 pJLI 1144)tfA lu I

II I -l

IN

L

STj

11Li51~ rj

tr

jT 1

I

T I

-r I

Iyn I 174t ~

It

I

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 29: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

Til2I2i i1 i i 7H-]- ij -iI --Ioib ji it173jH liitjj44~i~

[vl tj L

I II

SI J4 2bLAit T-l1vHtri

2T KuHL II H II I I L L t ptr

T I I

I

t L L i I I1 [ Ii l- i I

I[ e - I i KI1 11111 Il I LI ii II I

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 30: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

iAli

I -T--1

771

id

I -- -

I

IF

~

--

i

I

$

iK xL

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 31: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

00 F7 4 shy

- I I

1 44

4

4 4

r 4 4

444 44 1

4 I 4

I

4 4gt0 C2rcaar agere~re of rotdAs rcmnaOK zt JUL

4

4 I 4~

I 1 4 I 4

4

4

j 44 4

- ezpamp4 art jhI44(

2 i-24

I ~ 1 44I~ ~ 4

ti A4 fr

41N it

414It 2

j

)iiI

I 4 II I I I~I

I K 4 4 v Ii I IIC ~i i I I44~ 141 1~~~~~~t ~N - 4---r- - 4r-$ I 1 44 4j 4 i4~I

I 4 4

t~4~2It4

A 4 4

14

A ---- - 4---- ~ ~ I ~44J44-amp444444-

lii

lvi Hit

1- 44 4

4 I

II 4

44 4

V V 4 4__4 -ao4

44

4 4framprcrt t~erijj~c rontt~)f Sy-

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 32: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

29

Proof In equation (40) we have

TWO ZERO-ORDER TERMS (centered at X Y = 0 0)

Ist term has width W

2nd term has width 3W

CONVOLUTION TERM (centered at X Y =- 4 0-P C )

has width 2 W

=CORRELATION TERM (centered at X Y p0-A j V

has width 2W

Separation achieved if

Wgt9

or

and finally with reference to Figure 4 a minimum aperture for lens

can be established to ensure that the correlation and convolution terms

of equation (40) fall within the lens aperture

Film Resolution Requirements - For interference of two plane waves

with angular separation o( the interference fringes are separated by

Figure 15-shows a plot of the reciprocal of this equation for

= amp3 A It shows how resolution in cycles per millimeter

increases as the reference angle -o increases

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 33: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

-- ---

30

= -- _- r

6-n - shy----- 7 r- - --= --- -=------ --- -- -- - -- - ---- - - - - -- - shy

1 17

---- - - -- - - --- - - --- - shy

- - -- - - - ---shy

- -

- - - i-

bull --- -

=--

- -- ------shy

-- 3 -Z - -- -

I-07- Z Ocshy

- -- - = - - - = = --- k _=_ -7- --- - j 4

~~~~~~~~~~~~~~~=- ~~ -7 --~~~~~~~~--- -shy

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 34: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

31

Effect of inherent phase term in Fourier transform expression -

Even if the aperture restrictions are such that the amplitude error in

the Fourier transform expression may be neglected and the linear

frequency approximation is valid there still exists a multiplicative

phase term given by

I4 j

which may not be neglected However the following development shows

that this term is of no consequence in the operation of the optical

correlator [It does however affect the coherent imaging process]

Only the last term in the expression for T(xj will be considered

since it is the term which will result in the correlation term in the

output To include the multiplicative phase factor this term should be

written

When this ismultiplied by the Fourier transform expression

these two additional phase terms cancel resulting in the original

expression Since a longitudinal positioning error of the input transshy

parency results in a similar phase term no error will result providing

the filter is recorded and all input signals are placed in the same

longitudinally displaced position

A similar statement may be made concerning lateral displacement of

the inpuc image Since this lateral displaceent results in the Fourier

ORIGINL PAGE IS

OF pooR QUALITY

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 35: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

32

transform expression being multiplied by a phase factor

where d is the lateral displacement and f is radial distance in the

transform plane then aslong as the recording and correlation processes

take place using the same laterally displaced position no error results

This is true because tHe phase term times itscomplexconjugate equals

unity

No analagous general stat6ment can be made concerning angular

positioning and rotation since these involve other than phase variations

Two other types of displacements may occur in the input plane These

are angular displacements and rotations AfKgu1ar displacements result

in the-image plane no longer being perpendicular to the optical axis

whereas rotations are defined to be angular movement about the optical

axis which maintains perpendicularity In general the effects of these

displacements are strongly dependent on the particular image function

As an example the periodic signal cos(Tr xx) after being

angularly displaced by the angle 9 becomes the new signal

05 wr ampXCLSe) (8

In effect the lines of the signal have been compressed resulting

in an expansion in the transform plane

Effects of rotations in the input plane depend strongly on the signal

since those signals with circular symmetry being correlated with themselves

are immune to rotations while those with straight-line features may be

6ffctec greatly Effects of rotation may be found for particular signals

ORIGINAL PAGE IS OF POOR QUALITY

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 36: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

33

g(xy) and h(xy) but little can be said in general since rotations may

either increase or decrease the degree of correlation between two

unlike signals It might be noted that the effects of rotations-(unlike

lateral longitudinal and angular displacements) are the same (for a

given rotation 5) whether the rotation takes place in the input or

filter plane

Filter displacements are much more critical than are image displaceshy

ments between recordingand correlation In fact the above parametricj

effects of small image displacements assume that the filter is perfectly

aligned So critical is this alignment that it normally is accomplished

with the aid ofa microscope The following development treats

the effects of filter misalignments and is derived from AVander Lugt

(Applied Optics V6N7 July 1967)

Figure-16 Shows relative correlation intensity for small lateral

displacements of the filter for three ratios of image maximum size to

focal length

Figure -17 Shows relative correlation intensity for small longitudinal

displacements of the optical filter as a function of image max size to

focal length ratio for three nominal displacements

To determine the effect on performance of angular displacement of

the filter some previous results may be used For a tilt of 0 the

longitudinal displacement of the filter is given by

~ (ma-x) amp_v 199

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 37: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

-JJL r+4-- 4+1+ 11 1+1- 1-It

T I7

I

I -

i i-I-ct V HJIiTFV

1vt

h i

IJ

t

I 1

~ ~H L

ilt1 k v

____

+

- ifIf I

- -- L L - iL

II ~LI j

Fr~~~till- 4 O

A4-4--oshyJ~o

b ii

r4 r ]

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 38: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

t tf-i~ iJi41WVJi4-f 4WtS Li tLI~ i---i-f--degx 11 I+

j y fi Ii HI Kshy_ --

J I

~~2~ u~ ---- - tL T 7 17 ~~r --

T[ 4r I 4

LLL _

I I I Itx hgL

i t

____jItr

i I ] 1IIE IlI II 01 1i1o7 i IJi 100II bull

74t

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 39: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

Avv~-H-H~ ~ ~ aF11 HTIFF[11

mlt i1 IL II f j~lJuLl LL

lItAJ t ttI-- ~ ~ --

b ror axg4y4444 -L~b~f4444frY-+ILL+ If

4-1I

il I0 i I iI] I i r i n t I TfO erir-7 i i - i bullI ee

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 40: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

37

where f(max) isthe maximum extent of the Fourier Transform plane

Using this AZ inthe longitudinal displacement equation yields

performance for different amp(See Figure 18)

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 41: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

30 EXPERIMENTAL ANALYSIS

Experimental work on the program was impeded on several occasions

because of construction and modification to the electro-optics laboratory

Hdwever the major experimental tasks were accomplished Improved

results could have been obtained with more sophisticated auxiliary

optical equipment such as precision positioning and alignment fixtures

From the aerial photographs supplied by NASA segments in 35 mm

format were selected which represent different types of terrain For

example from the supplied photographs several textures of cultivated

land orchards in various stages of development forests housing motor

vehicles and combined water-land areas wer pbtained Since multiple

shots of all photos were provided the procedurewas to simply cut example

areas from one copy of each different photo This method is simpler

than a photographic reduction process and further has the advantage of

retaining the resolution qualities of the larger format film The only

problem is that because of larger images the spatial frequency content

will be more concentrated near the optical axis in the optical transform

plane

A total of eighteen representative segments were selected and

optically transformed to check for significant differences and similarities

among the various spectra Photographs of the transforms were taken and

enlargedprinted to facilitate comparison Additionally autocorrelation

functions were generated optically and photographed for each of the

candidate images The method used for generating the correlation functions

was to transform optically a photographic transparency of the power spectrum

38

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 42: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

39

for each image This method eliminates alignment problems encountered

in the Vander Lugt method for generating autocorrelation functions

Cross-correlation functions may be generated in a similar fashion

however there will be an alignment problem during recording of the

cross-power spectrum

A number of correlation experiments using the Vander Lugt method

were conducted with the result being essentially the same for all

experiments That isno recognition spot at all was obtained with any

image except the one used to make the spatial filter Even the autoshy

correlation spot was very weak in some cases an effect most likely

attributable to the previously mentioned alignment difficulties The

cross-correlation failed even for segmentscut from the same larger

image format (eg two segments of a peach orchard) Enlarged photographs

of selected aerial imagery power spectra and autocorrelation functions

are shown on the following pages The need for more accurate alignment

control is indicated by the results

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 43: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

- -

40

It bull t

bull -

I --

IT

Figure 19 Peach Orchard (0132055 3) a) image b) power spectrum c) autocorrelation

ORIGINAL PAGE IS OF POOR QUALITfY

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 44: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

41

77

IS

f amp $1 shy

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 45: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

42

1 4

3

- shy

I -

rhr (0305 I )ia )pwrsetuFiue2 Pec c)~--auoorlto

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 46: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

43

N i- - - - - - -

-

(A)O-r- PAGE

-I 1 --

- -- -VmgoS p j

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 47: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

44

i i- U

- - A i

Fiur 21-loe

c)-au

fil 0306

oreato

)iae b)pwrsetu

OKIG ALpAGE I

OF pOR QALIT

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 48: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

45

- - bullWII bull bull

bRIGINAL PAGE jBOF POOR QUALIT

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 49: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

46

4

OTTALVI

Figure 22 Pasture (01320063 3) a) image b) power spectrum c) autocorrelation

TGINAI PAGE IS

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 50: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

47

A --

V -

I--

- -~~c

4 S~lt-

-~

~~A ~

1

~ C -shy~-~rS-

-

~ -

~tl ~

~ -s- Wci~r4~

- -C

-~ Ac~~

gt

-Cr~

j

t

____ _____ ~ N~- -

- -

___ ____ ___________________

4 ~_-k_~-~~

at)

ORIGTN~ PAGE 12 ~ OF POOR QUNLI

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 51: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

- - -

-- -

-- -

48

- IV I

- t -

1--I I- t t

~A

1 I

1 - 1 It-

F I-- I

- ~ 1 I-~~1

U 1 I- t 3 - - I

I-V I

V ~ - 3

pound6 t 2]plusmnJtssect-~ztjtW LA - iffl~f-jkS tAt

a~)

4-) Figure 23 Orchard (0132055 2) a) image b) power spectrum

ry T~T4 LV2t1 ~tG~i U -t

09- shy

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 52: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

49

I I I

F shy

bull I~~ -

I-I -)I

44-II1

4 r

b)

Figure 24 Peach Orchard (01320120 2) a) image b) power spectrum

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 53: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

__

_________________________________________

50 ~-- ~ shy4 4 ~

shy4 shy -Wi shyt~ --- shy

- -~fr--~~1A 42-rS~J- gtk-sultt v A - ~2w - - ~~ plusmn-~~4

j-J

S

4

I _ - --

- t

62)

cv

Iamp~~gt

-~~ s~ - -1-itshy

~4~lt

- shy

-4I 4-asvJA 3 b-ltA~ A- Ctgts ~ ~

Figure 25 Plowed field (01320120 4) a) image b) power spectrum

uRLCVNampL ~XCE E

OF POOR QUALITi

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 54: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

- - - - - - - - - - - - - - -

51

deg shy

- -4 - 7-)

_- - 4 -o

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 55: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

- - 52

I

U 4

shy

b))

teran 0130103) a)imgeFigre27 Copoit ) owr secru

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 56: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

53

- ~-~tr~w~4N

_

t -- 4-tij

- n AI

at ~

~J ~~ f 7

AZ-R4 - -- ~tb~6

~Mtit~T~~ i~ ~ V14--

4 ttAJ 2 gt

t $ 14

Figure28 Pach orhard viu tre sie 0306 7) a mg

b) poe spec t m ~ sectA ~tamp

2iTY--U- - ~y~~AI

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 57: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

40 COMPUTER ANALYSIS

Computer programs 1for computing the two-dimensional Fourier transform

and providing a three dimensional perspective plot were generated The

purpose was to investigate the feasibility of generating computer results

for comparison with expected optical transforms The programs were

successfully operated the major limitation being as expected limited

resolution because of core and time requirements However for relatively

low resolution imagery the program does provide transform and correlation

results In order to use the programs effectively in analysis of images

it is necessary that the imagery be scanned and digitized Equipment

for performing the scan and digitization aswell as transform and filtering

operations isavailable commercially at significant cost

For this project fortran programs were generated using the standard

IBM FFT subroutine HARM which accepts two dimensional or even three

dimensional data sets Additionally a program suitable for operation on

smaller computers which utilizes manipulation of two dimensional data in

a one dimensional FFT algorithm was implemented The procedure is to

first transform the rows of a two dimensional data matrix and then

transform the columns

Arrays up to 128 x 128 were transformed and plotted on the IBM 370

and Calcomp Plotter CPU time and core requirements for the array sizes

were approximately as follows

array size CPU time core

128 x 128 30-40 sec 394K

64 x 64 25-35 sec 150K

54

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 58: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

55

Example outputs are shown below

Figure 29 Calculation and plot of magnitude of Fourier Transform

of square aperture (64 x 64 array)

Figure 30 Calculation and plot of magnitude of Fourier Transform

of circular aperture (128 x 128 array) Larger size array is used for

more accuracy in image definition however only the central (64 x 64)

portion of the transform is plotted

Figure 31 Expandea quadrant plot of the spectrum for-a circular

aperture

Figure 32 Spectrdfn for a narrow slit parallel to the y axis

Figure 33 Spectrum for a narrow slit parallel to the x axis

Figure 34 and Figure 35 Optically generated spectra for the

rectangular and circular apertures

The computer program listings are given in Appendix B

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 59: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

Figure 29 F) NC( Z-J)rotf9IEc TA3IVSFQampl

10~

KEC0)

(ampTgt

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 60: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

57

Figure 30 Magnitude plot Fourier transform of a circular aperture

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 61: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

- 58

gt

Figure 31 Expanded quadrant magnitude spectrum for a circular aperture

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 62: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

59

Figure 32 Spectrum for narrow slit parallel to the x-axis

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 63: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

60

Figure 33 Spectrum for a narrow slit parallel to the y-axis

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 64: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

50 CONCLUSIONS I

The theoretical development for optical processing is based on a

number of assumptions and approximations Examination of the parametric

effects of these assumptions and approximations indicates very little

error in the presentation of transforms and correlations However other

parameters specifically errors in alignment can be shown to have a

strong effect on the success of optical processing techniques This

conclusion was predicted from parametric considerations and verified

experimentally

A major problem in the experimental implementation of optical

correlators in addition to the alignment problem is due to the fact

that the spatial frequency content of most imagery is clustered near

the optical axis giving a very bright central spot Any optical detection

medium such as film then has the requirement of responding to optical

patterns with a wide dynamic range Saturation effects are almost a

certainty if-exposure is increased to detect the weaker pattern regions

Further efforts at application of coherent optical processing

techniques in other than a laboratory environment requires solution of

practical problems

61

OF PO I

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 65: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

62

n

VI I-

Figre4 ptiall geer tsetuo etnua prue

OF P

Fiue35 petu fracrclrapruepialygneae

PGEORIGIAL 4 OF POOR U

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 66: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

APPENDIX A FRESNEL TRANSFORMS

A Fresnel function isdefined as - I_ X 2

CTjrCt cret0Cx Z+ g) T ) (Al)

where a ispositive and real Its Fourier transform isfound from

Ftff4e (A2)

Equation (A2) can beidevaluated using Fresnel integrals to obtain

F2 ) (- Jz - (A3)

Similarly we have the Fourier transform pair

(M4)

LC

From the convolution theorem and the above

47r 5 _ rashyS-(A5) _ poundshy

--Now define the Fresnel transform of g(x)

V CLLefC (A6)-ra

where g(x) isthe Fresnel transform of g(x) Using property (A5) itis

easy to show that

(A7)

(A6) and (A7) define a Fresnel transform pair

63

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 67: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

64

Comparison of Fourier and Fresnel transforms

If ieFourier transform both g(x) and its Fresnel transform (x)

we get

G()=J_ e_ ( )(AS) CC6a C _

Substituting (A6) into (A9) gives

V inC -

(A10

-- O tZ Cnampe

or ~ Q () T A(All)

Equation (All) says that a Fresnel transform in the spatial domain

corresponds to a multiplicative phase-factor in the spatial frequency

domain

Fresnel transforms are useful in describing propagating optical

fields and in the study of Fresnel diffraction

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 68: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

APPENDIX B

COMPUTER LISTINGS

65

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 69: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

66

C PROGRAM USING SUBROUTINES FFT AND PLOT3D COMPLEX A(64)UWTF(6464)C(6464) DIMENSION OUTBUF(64)MASKC2000)VERTEtimesX(16) N=64 M=6

C C(tJJ IS INITIALLY THE COMPLEX N X N ARRAY TO BE C FOURIER TRANSFORMED C A(I) IS THE ONE DGMENSampONAL N-ELEMENT ARRAY ON WHICH C SUBROUTINE FFT OPERATES C UCWAND T ARE VARIABLES OF SUBROUTINE FFT C OUTBUFMASK AND VERTEX ARE ARRAYS OF SUBROUTINE PLOF3D C FORM INPUT ARRAY FOR SQUARE APERTURE

DO 1 I=1N DO I J=IN CI J)=OO IF CJoGEo29oANDJoLE36ANDlGEo29ANDILE36)

C( IJ )=13

1 CONTINUE C- PERFORM ONE DIMENSIONAL FFT ON ROWS OF CCIJ) AND C STORE RESULT IN F(IJ)

DO 4 1=1N DO 2 J=1N

2 A(J)=C(IJ) CALL FFTtAMN) 00 3 K=IN KI=N1K+I

3 F(IKI)=A(K) 4 CONTINUE

C EACH OF THE N-ELEMENT ONE DIMENSIONAL TRANSFORMS NOW C FORMS A ROW OF F(IJ) C TAKE TRANSFORM OF COLUMNS OF F(IJ) AND STORE RESULT C IN C(IJ)

DO 5 J=1vN DO 6 I=IN

6 A(I)=F(IJ) CALL FFT(AMN) DO 7 K IN KI=N-K+1

7 C(KIJ)=A(K) 5 CONTINUE

C TRANSFORM IS NOW STORED IN C(IJ) TAKE ABSOLUTE VALUE C OF EACH COMPLEX ENTRY

DO 8 I=1vN DO 8 J=IN

8 C(IvJ)= CABS(CItJ)) C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY F(IJ)

N02=N2 ND2MI=ND2-1 ND2Pl=ND2+1 ND02P2=ND2+2

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 70: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

67

71 I=IND2PI DO 71 J=IND2P1

71 F(I+ND2MlJ+ND2MI)=C(LJ) DO 72 I=ND2P2N DO 72 J=IND2PI

72 F(I-ND2PIJ+ND2MI)=C(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 F(I-ND2PIJ-ND2P1)=C(IJ) DO 74 I=IND2PI DO 74 J=ND2P2N

74 F(I+ND2MIJ-ND2PI)=C(IJ) C NORMALIZE VALUES IN F(IJ) TO VALUE OF ONE

FMAX=O0 DO 21 I=IN DO 21 J=IN IF (FMAXGEoCABSCF(IJ))) GO TO 21 FMAX=F(IJ)

21 CONTINUE -

DO 22 ltN DO 22 J=IN F(IJ)=F(I9J)FNAX

22 CONTINUE C PLOT THE ARRAY F(IJ) USING SUBROUTINE PLOT3D

DO 20 NLINE=IN DO 10 NPOINT=19N OUTBUFLNPOINT)=F(NPOINTLINE)

10 CONTINUE CALL PLOT3D(I01O9pOOOUTUFOOo0754O-Osect75 NLINE649-450-30O5O3O1O0MASKVERTEX)

20 CONTINUE C DRAW FRAME AROUND PLOT USING SUBROUTINE FRAMER

CALL FRAMER(39VERTEXMASK) C - SIGNAL THAT PLOT IS COMPLETE

CALL PLOTO00 0 999) STOP END

ORIGINAL PAGE IS OF POOR QUALITY

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 71: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

68

SUBROUTINE FFT (AMrN) COMPLEX A(UUIWIT N= 2M NV2=N2bullNMS=N-I

J=l -

DO 7 I=INMI IFUIGEt J) GO TO 5 T=AIJ) A(J)=A(I) AM) =T

5 K=NV2 6 IF(KGEJ)

J=J-K K=K2 GO TO 6

7 J=J+K PI=3 0 14159 DO 20 L=IM LE=2L LEI=LE2 U=(100)

Z GO TO]7

W=CMPLX(COS(PILE1)SINCPILEI)) DO 20 J=1LEI DO 10 I=JdNtLE IP=1+LEI T=A( IP)U A(IP)=ACI )-T

10 A([)=A(I)+T 20 U=UW RETURN ENO

oOGFR5 OF uy

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 72: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

69 o PROGqA USING SUROUTIUNES HARM AND PLOI3D

DIMENSION A(32768)(3)INV(4096)Y(1284I28) X(128 128) S( 4096) IVAL( 128) MASK(2000) vFrEX( 16)1 OUTBUF(128) N=128

- NSQD=NJ42

NSQDT2= 2NSQD C FORM INPUT ARRAY kr(IJ) TO BE FOURIER TRANSFORMED C AND COLUMNIZE TO ARRAY A(t) FOR INPUT TO SUBROUTINE

C HARM K=1 DO 1 J=INDO I I=ITN

C FORM INPUT ARRAY FOR CIRCULAR APERTURE X(IJ)=OO -IF CJGE62oAiDJLE67ANDIoGE57 ANDILE72) X(1J)=1O IF ((JoEQo57ORJEQo72) ANDIGE62AND

IoLE67) X(IJ)=1O IF ((JoEQ58ORJEQo71) oANDIGE60AND

ILE0 69) X(IJ)= OO

IF ((JEQ 0 59ORJEQ70 ANDIGE59AND IoLEo70) XCIJ)=10 IF [JEQ60OPRJEQ61ORJEQ68OR

J0 EQ0 69) ANDIGE58ANDILE71) XCIJ=IO A(K)= X(IJ) AtK+1)=O0 K=K+2

I CONTINUE C SET UP PARAMETERS FOR SUBROUTINE HARM

IFSET= M(1)=7 M(2)=7 M(3)=O CALL HARM(AMIVSIFSETIFERR)

C CHECK FOR ERRORSIF (IFERRoNEO) GO TO 35 GO TO 6O

35 WRITE(65O) IFERR 50 FORMAT (lI3O()56XIFERR=I2)

STOP C PUT tHE COMPLEX TRANSFORMED ARRAY A(I) INTO NEW C MAGNITUDE ARRAY A(1)

60 DO 65 I=LNSQDT22 65 AI+I2)= SQRT((A(I) t2+(A(I+I))_2)

C PUT ARRAY AM) INTO TWO DIMENSIONAL ARRAY Y(IJ) 1=0 DO 70 L=IN DO 70 J=IN

1=1+1 70 Y(JL)= AC1)

C REARRANGE FOR PROPER OUTPUT AND STORE IN ARRAY XCIJ) ND2=N2 OD241=ND2-1

ND2P I=iD2+1 ND2P2=ND2+2 OP po0l PA---S DO 71 I=IND2PI 2QUArjrDO 71 J=1NU2PI

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 73: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

70

C

C C

71 X(I+ND2MltJ+ND2MI)=Y(TJ) DO 72 l=t0D2P21 0 72 Jp1ND2P1

72 X(I-ND2PJ+qND2M1l)=Y(IJ) DO 73 I=ND2P2N DO 73 J=ND2P2N

73 X(I-NOZP]J-Nf2P)=Y(IJ) DO 74 I=1ND2P1 DO 74 J=N02P2N

74 X(I+ND2M1J-ND2P1)=YIJ) NORMALIZE VALUES 114 X(1J) TO VALUE OF ONE XMAX=Oo0 DO 21 I=N DO 21 J-I1N IF (XMAXGEX(IJ)) GO TO 21 XMAX=X (I J)

21 CONTINUE DO 22 =1N DO 22 J=1N X(IJ)=X(IJ)XMAX

22 CONTINUE PLOT THE CENTRAL 64 X 64 ELEMENTS OF THE 128 X 128 ARRAY X(IJ) USIIG SUBROUTINE PLOT3D DO 20 1=3396 DO 10 J=33196 NLIrJE=I-32 NPOINT=J-32 OUTBUF(NPOINT)=X(J I)

10 CONTINUE 4 0 7 5CALL PLOT3D( 101O0tOUTBUF0O075 0 -0

NLINE 64-45 0-30 0 5030 i00 MASK VERTEX) 20 CONrINUE

CALL FRAMER(3VERTEXMASK) CALL PLOT(0O0o0999) STOP END

ORIGrQAf PAGE ISOF POOR QUIT

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li

Page 74: N i - NASA€¦ · as Fourier transformation, correlation, convolution and filtering can be achieved optically is not obvious and-needs further justification. It is the purpose of

ELECTRICAL

IA

R

ENGINEERING EXPERIMENT STATION

AUBURN UNIVERSITY AUBURN ALABAMA

~Li