1. A method for computing a parallax, the method comprising: obtaining a plurality of views of a pixel point; computing gradients in a plurality of directions of the pixel point in the plurality of views; computing a matching error corresponding to a parallax of the pixel point according to the gradients; and computing the parallax of the pixel point according to the matching error.