Added support for 3-channels
Merge pull request #2849 from ElenaGvozdeva:ocl_matchTemplate_3cn