SDC C-Project CF Review 프로그램
LYW
2022-06-30 c220de6f70051797e9d8b371830d06def9dc9cbd
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// ModelData.h: interface for the CModelData class.
//
//////////////////////////////////////////////////////////////////////
 
#if !defined(AFX_MODELDATA_H__0F64EB90_305E_44B1_898C_9753FFBD0B45__INCLUDED_)
#define AFX_MODELDATA_H__0F64EB90_305E_44B1_898C_9753FFBD0B45__INCLUDED_
 
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
 
#include "MosisHive.h"
#include "MosisPacket.h"
 
// ÆÐÅÏ °æ°è.
struct AFX_EXT_CLASS stPatternEdge
{
    BOOL        m_FindBoundary;
    // °æ°èã±â °ü·Ã (°Ë»ç À̹ÌÁö Å©±â)
    int            m_FindPatternWidth;
    int            m_FindPatternHeight;
    int            m_FindSideWidth;
    int            m_FindSideHeight;
    
    // °æ°èã±â °ü·Ã (°Ë»ç Á¶°Ç)
    int            m_Threshold;
    double        m_DefectRatio;
    int            m_ContinueCnt;
    
    // °æ°èºÎ °Ë»ç ´õ¹Ì (°Ë»ç Á¦¿Ü ¿µ¿ª Çȼ¿ Å©±â)
    int            m_PatternDummy;
    int            m_PatternDummySide;
};
 
 
// °Ë»ç Á¤º¸.
struct AFX_EXT_CLASS    stConvData
{
    int            m_InspMethodPat;    // °Ë»ç ¹æ½Ä.
    int            m_ConvDir;            // °Ë»ç ¹æÇâ.
    double        m_ConvPitch;        // Á¾¹æÇâ ÆÐÅÏ ÇÇÄ¡(Pitch). Ä«¸Þ¶ó °üÁ¡.
    int            m_ConvPitchCycle;    // Á¾¹æÇâ ÆÐÅÏ ÇÇÄ¡ ¹è¼ö.
    double        m_ScanPitch;        // È¾¹æÇâ ÆÐÅÏ ÇÇÄ¡. Ä«¸Þ¶ó °üÁ¡.
    int            m_ScanPitchCycle;    // È¾¹æÇâ ÆÐÅÏ ÇÇÄ¡ ¹è¼ö.
 
    int            m_ConvThreshold;    // °Ë»ç ¹®Åΰª.
    int            m_ConvThreshold2;    // 2Â÷ ¹®Åΰª for Dynamic Threshold : 2*Bright/255+ 1
 
    int            m_ConvWidth;        // Convolution Width.
    int            m_ConvHeight;        // Convolution Height.
 
    int            m_Suppress;            // °Ë»ç Suppress.
 
    double        GetInspectConvPitch(){return m_ConvPitch*m_ConvPitchCycle;}
    double        GetInspectScanPitch(){return m_ScanPitch*m_ScanPitchCycle;}
};
 
 
 
class AFX_EXT_CLASS CModelData
{
public:
    stPatternEdge    m_PatternEdge;
    stConvData        m_PatternConv;
 
 
public:
    CModelData    &SelfModelData(){return *this;}
    BOOL        ReadModelData(CMosisPacket *pPacket);
    BOOL        WriteModelData(CMosisPacket *pPacket);
 
};
typedef        CMosisHive1<CModelData>        CModelDataHive;
 
 
 
#endif // !defined(AFX_MODELDATA_H__0F64EB90_305E_44B1_898C_9753FFBD0B45__INCLUDED_)