// 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_)
|