#ifndef BL_SIDE_DATA
|
#define BL_SIDE_DATA
|
|
#ifdef EXPORT_BLVISION_DLL
|
#include "../SDK/BaseDisplaySDK/include/typesdef.h"
|
#define EXPORTED_BLVISION _declspec(dllexport)
|
#else
|
#define EXPORTED_BLVISION _declspec(dllimport)
|
#endif
|
|
|
typedef struct _SideLineInf
|
{
|
int nSideLine;
|
int nThres;
|
int left;
|
int top;
|
int width;
|
int height;
|
}SideLineInf;
|
|
//¼ì²â½á¹û
|
typedef struct _DispVisionResult {
|
int eDir; //Ãæ²ÎÊý
|
int nType; //0,Point; 1;±íʾRect; 2,±íʾԲ; 3£¬ Ö±Ïß; 4£¬Îı¾
|
int eVision; //ÊÓ¾õÀàÐÍ
|
int rectX1; //¾ØÐβÎÊý
|
int rectY1; //¾ØÐβÎÊý
|
int rectX2; //¾ØÐβÎÊý
|
int rectY2; //¾ØÐβÎÊý
|
int pointX; //µã²ÎÊý
|
int pointY; //µã²ÎÊý
|
int circleX; //Ô²²ÎÊý
|
int circleY; //Ô²²ÎÊý
|
int circleRadius; //Ô²²ÎÊý
|
CString strName; //Ãû³Æ
|
}DispVisionResult;
|
|
|
class EXPORTED_BLVISION CBlSideData
|
{
|
public:
|
CBlSideData();
|
~CBlSideData();
|
|
public:
|
//1. ÖØÖÃ
|
void Reset(void);
|
|
//2. »ñȡλÖÃ
|
Point2I getPose(int nType);
|
|
public:
|
//1. ·Ö±æÂÊ
|
double m_dPixelSizeX; //X·½ÏòµÄ·Ö±æÂÊ
|
double m_dPixelSizeY; //Y·½ÏòµÄ·Ö±æÂÊ
|
|
//2. ¼ì²â½áÊø
|
BOOL m_bInspection_Complete; //ÊÇ·ñ¼ì²â½áËÙ
|
|
//3.Top Mark Info
|
BOOL m_bTopMark_Find; //ÊÇ·ñ²éÕÒTopMark
|
Point2I m_mTopMark; //TopMarkµÄλÖÃ
|
|
//4. Bottom Mark Info
|
BOOL m_bBotMark_Find; //ÊÇ·ñ²éÕÒBotMark
|
Point2I m_mBotMark; //BotMarkµÄλÖÃ
|
|
//5. ²éÕÒTop Point
|
BOOL m_bTopPoint_Find;
|
Point2I m_mTopPoint;
|
|
//6. ²éÕÒBot Point
|
BOOL m_bBotPoint_Find;
|
Point2I m_mBotPoint;
|
|
//7. Edge
|
int m_nStartLine;
|
int m_nEndLine;
|
|
//8. ¼ì²â½á¹û
|
std::map<int, SideLineInf> m_mapSideLineInf;
|
std::vector<DispVisionResult> m_vDispVisionResult;
|
};
|
|
#endif
|