The identification of fringe positions in speckle patterns