I am new to image processing , In my application i am detecting eye iris using template matching , So i string a standard iris and performing template matching ,The code is given below
CvInvoke.cvMatchTemplate(grayframeright_1.Ptr, templateimagegray.Ptr, templateimagesults.Ptr, TM_TYPE.CV_TM_CCORR_NORMED);
templateimagesults.MinMax(out min, out max, out Min_Loc, out MAX_Loc);
Location = new Point((MAX_Loc[0].X), (MAX_Loc[0].Y));
The problems is some times i get false positives , in order to eliminate false positive , i planned to calculate/get matching percentage value and use appropriate if condition.
1)So are there any functions in emgucv/opencv to get the matching percentage value? for e.g - 50% , 80% and etc
2)Are there any other ways to eliminate false positives ?
Please help me to figure this out .
Thanks in advance