A hierarchical pattern matching process is improved for use in three-dimensional reconstruction by calculating a disparity field for low-resolution data, and using this low-resolution disparity field to estimate the disparity field for higher-resolution images. By pre-warping a template according to the estimated disparity field, improved correlation results can be obtained.