A fast wavelet-based depth estimation algorithm for arbitrary stereo configuration