#pragma once
|
|
class AFX_EXT_CLASS CAlignRecipe
|
{
|
public:
|
CAlignRecipe();
|
virtual ~CAlignRecipe();
|
void Reset();
|
|
public:
|
// glass setting
|
int nRecipeIndex;
|
CString strTemplateName[2];
|
|
double dOriginPixelX[2];
|
double dOriginPixelY[2];
|
double dOriginPositionX[2]; // origin Motor Pos X (mm)
|
double dOriginPositionY[2]; // origin Motor Pos Y (mm)
|
double dGlassPositionX[2]; // (mm)
|
double dGlassPositionY[2]; // (mm)
|
|
// align camera Á¤º¸
|
int nCameraDirX[2];
|
int nCameraDirY[2];
|
double dCameraResolution[2];
|
|
// align motor position
|
int m_nUseAlignPosMove;
|
|
|
|
// double dMatchingThreshold;
|
// int nAlignThreshold;
|
// int nAlignMergeRange;
|
|
// Align Skip Mode
|
BOOL bAlignSkipMode;
|
BOOL bUseTotalPitchMeasure;
|
|
// image matching
|
BOOL bUseImage;
|
double dMatchingRate;
|
CString strFirstImageFile;
|
CString strSecondImageFile;
|
/*< LYW 20211012 - #3671 ADD Start >*/
|
CString strFirstAssistantImageFile;
|
CString strSecondAssistantImageFile;
|
CString strMatchingPixelStandard;
|
CString strMatchingAlarmCondition;
|
/*< LYW 20211012 - #3671 ADD End >*/
|
CString strTotalPitchImageFile;
|
|
// edge find param
|
BOOL bUseEdge;
|
int nEdgeWidth;
|
int nEdgeHeight;
|
int nEdgeThreshold;
|
int nMergeRange;
|
double dEdgeRate;
|
int nAlignMarkPosition;
|
|
// manual light control
|
BOOL bManualProcess;
|
double dFirstCamExposure;
|
double dSecondCamExposure;
|
|
// auto light control
|
BOOL bAutoProcess;
|
double dTargetMin;
|
double dTargetMax;
|
double dExposureMin;
|
double dExposureMax;
|
|
// rotate
|
BOOL bRotateProcess;
|
int nRetryCount;
|
double dGlassAngleMin;
|
double dGlassAngleMax;
|
};
|
|
class AFX_EXT_CLASS CAlignResult
|
{
|
public:
|
CAlignResult(void);
|
virtual ~CAlignResult(void);
|
void Reset();
|
void SetFindResult(const CAlignRecipe& alignRecipe);
|
BOOL AlignFindEnd();
|
int GetResultCode();
|
|
public:
|
int nFindCount;
|
int nResultCode;
|
int nFindAlign[2];
|
int nControlLightLevel[2];
|
|
double dFindPixelX[2]; // pixel
|
double dFindPixelY[2]; // pixel
|
double dFindScore[2]; // score (0~1)
|
|
double dFindPositionX[2]; // find motor pos mm
|
double dFindPositionY[2]; // find motor pos mm
|
|
int nAutoLightResult[2];
|
double dExposureTime[2];
|
CString strAlignFirest;
|
CString strAlignSecond;
|
};
|