[imgproc]Add template match with mask.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
@ilya-lavrenov Yes. If mask function is called in matchTemplate, I could use exist enums. Is it your meaning?