SDC C-Project CF Review 프로그램
kojingeun
2023-11-24 c112cf54a238afa473e7eb0ea6298e06f4957658
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#if !defined(__ASGINSPECTION_INCLUDED__)
#define __ASGINSPECTION_INCLUDED__
 
#include "AssemParam.h"
#include "AssemDefect.h"
 
class AFX_EXT_CLASS CASGInspection
{
    // Construction
public:
    CASGInspection();
    virtual ~CASGInspection();
 
public:
    void            SetPixelBuf(int *pPixelX,int *pPixelY,short *pPixelType,short *pPixelValue,int *nPixelCnt)
    {
        m_pPixelX = pPixelX,m_pPixelY = pPixelY,m_pPixelType = pPixelType,m_pPixelValue = pPixelValue,m_nPixelCnt = nPixelCnt;
    }
    void            SetParingBuf(CDefectPair *pDefectPair,int nParingCnt)
    {
        m_pDefectParing = pDefectPair,m_nDefectParingCnt=nParingCnt;
    }
    int                GetParingCnt(){return m_nDefectParingCnt;}
 
    void            VConvolutionConvC(CConvParam *pParam);
 
protected:
    BOOL            GetBufferCheck();
    void            SetPixelData(int x, int y, int sub, int threshold);
    BOOL            InsertPairing(int x, int y, int sub, int threshold, int graySrc, int grayRef);
    CRITICAL_SECTION    m_csDefect;
protected:
    int                *m_pPixelX;
    int                *m_pPixelY;
    short            *m_pPixelType;
    short            *m_pPixelValue;
    int                *m_nPixelCnt;
    CDefectPair        *m_pDefectParing;
    int                m_nDefectParingCnt;
 
};
 
#endif