Optimization of fringe pattern calculation with direct correlations in speckle interferometry.