idiffpuw | R Documentation |
Simple path following algorithm for two dimensional phase unwrapping.
idiffpuw(phase, mask = phase, ucall = TRUE, dx = NULL, dy = NULL)
phase |
A matrix of wrapped phase values |
mask |
Matrix the same size as |
ucall |
Boolean: User call? |
dx |
Matrix of x differences |
dy |
Matrix of y differences |
mask
indicates pixels that shouldn't be unwrapped. In the simplest (default)
case these are just pixels where phase is undefined.
if(ucall)
, a matrix of class “pupil
”
with unwrapped wavefront values, otherwise a list with items:
puw |
Unwrapped phase |
uw |
Matrix indicating pixels that have been unwrapped. |
brcutpuw
calls rmap
first to
check for the presence of residues. If there are none idiffpuw
is guaranteed to work and is called to do the phase unwrapping.
If there are residues brcutpuw
creates a mask then calls
idiffpuw
to unwrap unmasked portions of the phase map.
This function is user callable as well; use a call
of the form idiffpuw(phase)
.
M.L. Peck mpeck1@ix.netcom.com. Thanks to Steve Koehler for programming ideas to considerably speed up the algorithm.
Ghiglia, D.C., and Pritt, M.D., 1998, Two-Dimensional Phase Unwrapping, New York: Wiley & Sons, Inc., ISBN 0-471-24935-1.
rmap
, brcutpuw
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.