07.11.2014 Views

Application and Optimisation of the Spatial Phase Shifting ...

Application and Optimisation of the Spatial Phase Shifting ...

Application and Optimisation of the Spatial Phase Shifting ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.2 Noise quantification in this work 107<br />

A simplex in IR n is a (hyper-)body set up by n+1 vertices; it is <strong>the</strong> simplest body one can create in <strong>the</strong><br />

respective dimensionality. In IR 3 , a simplex is a tetrahedron. Because this is <strong>the</strong> parameter space that we<br />

are in with our type <strong>of</strong> sawtooth images, we consider this example to clarify how <strong>the</strong> strategy works.<br />

Initially, <strong>the</strong> routine is passed a starting vertex, which is <strong>the</strong> user guess for (N x , N y , N 0 ). From this, <strong>the</strong><br />

noise-free fringe system ∆ϕ ref(x,y) is calculated to compare it with ∆ϕ meas(x,y). The resulting σ ∆ϕ is<br />

assigned to <strong>the</strong> first vertex. Then, <strong>the</strong> three o<strong>the</strong>r vertices are established by simply varying each one <strong>of</strong><br />

<strong>the</strong> parameter co-ordinates a little; this 3-bein ensures that a volume is generated instead <strong>of</strong> a plane or a<br />

line. Each <strong>of</strong> <strong>the</strong> vertices defines a slightly different ∆ϕ ref(x,y) <strong>and</strong> thus leads to its corresponding σ ∆ϕ , so<br />

that we have a set <strong>of</strong> four different σ ∆ϕ . The vertex that has generated σ ∆ϕ,max is <strong>the</strong> worst-fitting point,<br />

<strong>and</strong> hence <strong>the</strong> one to move through <strong>the</strong> IR 3 to find a location closer to <strong>the</strong> minimum for it. (There are many<br />

local minima, but with an accuracy <strong>of</strong> ¼ fringe for <strong>the</strong> starting values, <strong>the</strong> absolute minimum is safely<br />

found.) This is done by means <strong>of</strong> <strong>the</strong> geometrical operations sketched in Fig. 4.5.<br />

a)<br />

⇒σ ∆ϕ,max<br />

⇒σ ∆ϕ,min<br />

b)<br />

c)<br />

d)<br />

Fig. 4.5: Downhill simplex data fitting strategy in 3 dimensions (see text). Figure taken from [Pre88].<br />

During <strong>the</strong> fitting process, <strong>the</strong> simplex must remain non-degenerate, i.e. truly 3-dimensional, which is<br />

guaranteed by <strong>the</strong> shown sequence <strong>of</strong> trials. Assumed <strong>the</strong> "worst" <strong>and</strong> "best" vertices are as in Fig. 4.5 at<br />

<strong>the</strong> beginning – or any o<strong>the</strong>r stage – <strong>of</strong> <strong>the</strong> fitting process, <strong>the</strong> first trial is step a), a reflection <strong>of</strong> <strong>the</strong> worst<br />

point through its opposite – here shaded – surface (generally, through <strong>the</strong> centre <strong>of</strong> gravity <strong>of</strong> all o<strong>the</strong>r<br />

vertices). If <strong>the</strong> new σ ∆ϕ is <strong>the</strong>n found to have decreased, an expansion as in step b) will be tested. If σ ∆ϕ<br />

decreases fur<strong>the</strong>r, this larger step toward <strong>the</strong> minimum is done. If no improvement comes about by step a),<br />

step c) is executed: <strong>the</strong> tetrahedron just shrinks away from <strong>the</strong> worst point. If this does not reduce σ ∆ϕ<br />

ei<strong>the</strong>r, <strong>the</strong> tetrahedron is simply contracted towards <strong>the</strong> best-fit point, as in step d): only <strong>the</strong> "best" vertex<br />

is fixed, <strong>and</strong> all three o<strong>the</strong>r points are moved towards it, so that <strong>the</strong> resulting tetrahedron will be <strong>the</strong><br />

dashed outline. Then <strong>the</strong> process repeats with a new worst point, <strong>and</strong> if we are lucky, <strong>the</strong> former worst<br />

point could be <strong>the</strong> new best one. In each iteration, <strong>the</strong> currently worst estimate <strong>of</strong> (N x , N y , N 0 ) is subjected<br />

to <strong>the</strong> trial sequence, whereby <strong>the</strong> tetrahedron creeps through <strong>the</strong> IR 3 to enclose <strong>the</strong> minimum, <strong>and</strong> <strong>the</strong>n to

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!