[imgproc]Add template match with mask.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
even mask function is a separate function you can you the same enumeration anyway. I don't see any reason for extending.