I am using cvFindHomography( pt1, pt2, &_h, CV_RANSAC, 5), to find homography matrix for list of matched points where pt1 and pt2 are the lists of points which have been found using nearest neighbour algorithm.

My question is I need to know how many points have been calculated by this function as inliers and how many as outliers as I am using CV_RANSAC method.

How can i get this information from this function, kindly help me in this regard.