Revert "Merge pull request #249 from taka-no-me:tvl1_max_rmse"

This reverts commit 62af76c6468598d68182d01523d118e12809ee9b, reversing
changes made to 962884cdec1767e832b3364227fcb9479c36c354.
Merge branch 'master' of https://github.com/kazuki-ma/opencv
Merge branch 'master' of https://github.com/kazuki-ma/opencv

Conflicts:
	modules/video/test/test_tvl1optflow.cpp
Merge branch 'master' of https://github.com/kazuki-ma/opencv
Implimentation "cv::Mat::forEach"

I propose forEach method for cv::Mat and cv::Mat_.
This is solution for the overhead of MatIterator_<_Tp>.

I runs a test that micro opecode runs all over the pixel of cv::Mat_<cv::Point3_<uint8_t>>.
And this implementation 40% faster than the simple pointer, 80% faster than iterator.
With OpenMP, 70% faster than simple pointer, 95% faster than iterator (Core i7 920).

Above all, code is more readable.

My test code is here.
    https://gist.github.com/kazuki-ma/8285876

Thanks.
modify