主权项 |
1. A method for stereo correspondence, comprising a matching cost computation, a cost aggregation, a disparity computation, and a disparity optimization, wherein the matching cost computation comprises:
acquiring a left disparity space image and a right disparity space image by using horizontal gradients and vertical gradients of intensities of component channels of pixels in a left image and a right image, wherein: the cost aggregation comprises:
as to any pixel (x,y) in a matching cost plane corresponding to any disparity value “d” in the left/right disparity space image, determining a scope of a cost aggregation support window for the pixel (x,y) by using horizontal gradients and vertical gradients of intensities of channels of multiple pixels around the pixel (x,y) in the left/right image through a gradient accumulation method;calculating an aggregation cost at the pixel (x,y) in the matching cost plane corresponding to the disparity value “d” by using matching costs of pixels in the scope of the cost aggregation support window for the pixel (x,y). |