UnwrapDCT[data]
unwraps the given dataset using DCT transform . The data should be between -Pi and Pi.
UnwrapDCT[data,weights]
unwraps using weighted least squares, weights can be Automatic or an array with the dimensions of data.
UnwrapDCT[]
is based on DOI: 10.1364/JOSAA.11.000107.