rewrote matchTemplate in C++; added border awareness to crossCorr (ticket #557)
rewrote matchTemplate in C++; added border awareness to crossCorr (ticket #557)

apavlenko/opencv,opencv/opencv,opencv/opencv,apavlenko/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,apavlenko/opencv,apavlenko/opencv,opencv/opencv,apavlenko/opencv,opencv/opencv,apavlenko/opencv,opencv/opencv