SDC C-Project CF Review 프로그램
KEJ
2023-11-24 9020bfb6f86ff853d5d5b3cee882132a244232da
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
44
45
46
47
48
#pragma once
 
#include "AssemParam.h"
 
class AFX_EXT_CLASS CPixelStorage
{
protected:
    CConvParam    m_Param;
public:
    int        m_nPixel;
 
    int        *m_pPixelX;
    int        *m_pPixelY;
    short    *m_pPixelType;
    short    *m_pPixelValue;
 
    int        *m_pGraySrc;
    int        *m_pGrayCmp;
    int        *m_pZoneID;
    int        *m_pZoneTh;
 
public:
    int        m_nPixelSpace;
    int        m_maxPixel;
 
public:
    CPixelStorage();
    virtual ~CPixelStorage();
 
public:
    int        InitPixelStorage(int maxPixel= 10000);
    void    SetConvParam(CConvParam *pParam);
    void    ResetPixelStorage();
    int        GetPixelCount(){return m_nPixel;}
 
    int        GetThreadDefectPixelNum()        { return m_nPixel; }
    int        GetOverflowedPixelY()            { return m_pPixelY[m_nPixel - 1]; }
 
 
    int    GetPixelX(int i){return m_pPixelX[i];}
    int    GetPixelY(int i){return m_pPixelY[i];}
    int    GetPixelType(int i){return m_pPixelType[i];}
    int    GetPixelValue(int i){return m_pPixelValue[i];}
    int    GetPeak(int i){return m_pPixelValue[i];}
    int    GetThreshold(int i){return m_pZoneTh[i];}
    int    GetSrcGray(int i){return m_pGraySrc[i];}
    int    GetCmpGray(int i){return m_pGrayCmp[i];}
};