1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once
 
#include "GlassRecipe.h"
 
#include "cv.h"
#include "highgui.h"
#include "cxcore.h"
 
enum RetValue { Ret_ParamError=0, Ret_MatRateLimit, Ret_Success };
 
class CHoleInspector
{
public:
    CHoleInspector(void);
    ~CHoleInspector(void);
 
public:
    RetValue HoleInspect_TemplateMatching(int nThreshold, int nOffset, int nMinSize, IplImage* pTargetImage, IplImage* pTemplateImage, IplImage** pResultImage, std::vector<CRect>& vecDefectList, double& dMatRate, IplImage** pResultImageColor=NULL);
 
    // Rcut
    RetValue HoleInspect_TemplateMatching(HOLE_INS_PARM* pParam, IplImage* pTargetImage, std::vector<CRect>& vecDefectList, CPoint& ptMatchingPos, IplImage** pResultImageColor=NULL);
};