Internal and external similarity aggregation stereo match algorithm

When extracting disparity map, for the high non-occlusion region error rate and low efficiency of stereo matching algorithms, we defined internal similarity (IS) of neighbor pixels in reference color image, and in the color and sub-pixel space, we defined external similarity (ES) of candidate matching pixels between the reference and target images, and given the calculation methods of the internal similarity and external similarity. We discussed the relationship between the internal similarity and external similarity, and taken the internal similarity as the aggregation degree of the external similarity, and the internal and external similarity aggregation (IESA) algorithm was proposed to aggregate the external similarity by the internal similarity along eight directions, after that, the disparity map was calculated by the winner take all (WTA) algorithm, which was used to search the disparity corresponding to the maximum aggregation similarity. Finally, the box plot filter (BPF) was proposed to smooth the disparity map. Experiments on the Middlebury stereo datasets and the extend datasets show that the proposed algorithms achieve the state-of-the-art results.