prtools.find_wrapped#

find_wrapped(opd, grad_thresh)[source]#

Attempt to find phase wrapping using gradient edge detection while automatically ignoring large gradients at mask edges.

Parameters:
  • opd (array_like) – OPD to detect wrapping in

  • grad_thresh (float) – Threshold on magnitude of OPD gradient for determining wrapping

Returns:

  • wrapped (ndarray) – Map of wrapped pixels

  • grad (ndarray) – Gradient amplitude