A method and apparatus for matching stereo images including calculating a data cost of at least one image, calculating a smoothness cost of the image, and matching pixels among pixels of a plurality of images based on the data cost and the smoothness cost.