idiffpuw: Phase unwrapping by Integrating DIFFerences

View source: R/puwalgs.r

idiffpuwR Documentation

Phase unwrapping by Integrating DIFFerences

Description

Simple path following algorithm for two dimensional phase unwrapping.

Usage

idiffpuw(phase, mask = phase, ucall = TRUE, dx = NULL, dy = NULL)

Arguments

phase

A matrix of wrapped phase values

mask

Matrix the same size as phase indicating masked pixels

ucall

Boolean: User call?

dx

Matrix of x differences

dy

Matrix of y differences

Details

mask indicates pixels that shouldn't be unwrapped. In the simplest (default) case these are just pixels where phase is undefined.

Value

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.

Note

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).

Author(s)

M.L. Peck mpeck1@ix.netcom.com. Thanks to Steve Koehler for programming ideas to considerably speed up the algorithm.

References

Ghiglia, D.C., and Pritt, M.D., 1998, Two-Dimensional Phase Unwrapping, New York: Wiley & Sons, Inc., ISBN 0-471-24935-1.

See Also

rmap, brcutpuw


mlpeck/zernike documentation built on April 19, 2024, 3:16 p.m.