1. A method of confidence estimation for optical flow comprising the steps of: computing the census texture gradient (Cg) features for each pixel of an input image; computing smoothened versions of said features (Sg); constructing a feature vector for each pixel of the input image; computing a classifier score from said features by employing a decision tree classifier; converting the classifier score into a confidence score.