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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

198 Appendix B: Real-time phase calculation<br />

The stretching in <strong>the</strong> horizontal direction is clearly discernible; it accounts for <strong>the</strong> maximal "stroke" <strong>of</strong> <strong>the</strong><br />

cosine term being twice that <strong>of</strong> <strong>the</strong> sine term.<br />

Depending on <strong>the</strong> number <strong>of</strong> involved intensity samples <strong>and</strong> <strong>the</strong>ir coefficients, <strong>the</strong> byte arrays needed for<br />

<strong>the</strong> LUT may never<strong>the</strong>less get larger; for instance, a LUT for (3.56) would need 5111021 entries. In that<br />

case, <strong>the</strong> coefficient <strong>of</strong> 2 for both intensity samples in <strong>the</strong> numerator thins out <strong>the</strong> grid <strong>of</strong> possible values<br />

<strong>and</strong> space can be saved. However, <strong>the</strong> very same formula in <strong>the</strong> representation <strong>of</strong> (3.57) requires a<br />

15311531-point LUT, <strong>and</strong> for (3.58), 20411021 possible values must be accounted for. This shows<br />

that a careful choice <strong>of</strong> <strong>the</strong> formula can be useful in practice.<br />

Non-integer coefficients in <strong>the</strong> numerator <strong>and</strong>/or denominator can only be implemented if a suitable factor<br />

can be found that converts all <strong>the</strong> coefficients for <strong>the</strong> respective expression into integers, i.e. if <strong>the</strong><br />

coefficients are rational numbers. As seen above, a common factor <strong>of</strong> L3 constitutes no problem in (3.17)<br />

or (3.58); however, if we had, say, L3 <strong>and</strong> 3 as coefficients in <strong>the</strong> sine or cosine term, we would have to<br />

use a rational integer approximation <strong>of</strong> <strong>the</strong>ir values, for instance 7 <strong>and</strong> 12; this would allow to put up a<br />

LUT, but remains a complicated procedure. Hence, while it is possible to accelerate phase calculation by<br />

LUTs on more occasions than one might think, <strong>the</strong> appeal <strong>of</strong> simplicity gets lost in some cases.

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

Saved successfully!

Ooh no, something went wrong!