88 lines
2.4 KiB
C
88 lines
2.4 KiB
C
|
#pragma once
|
|||
|
#include <string>
|
|||
|
#include <vector>
|
|||
|
|
|||
|
using namespace std;
|
|||
|
|
|||
|
class RecoatCheckCfg
|
|||
|
{
|
|||
|
public:
|
|||
|
enum CheckType
|
|||
|
{
|
|||
|
WHOLE_PERCENTAGE = 0,
|
|||
|
OVERLAP
|
|||
|
};
|
|||
|
|
|||
|
RecoatCheckCfg();
|
|||
|
~RecoatCheckCfg();
|
|||
|
void GetUpdateSql(vector<string>& ups);
|
|||
|
|
|||
|
public:
|
|||
|
bool m_Enable;
|
|||
|
bool m_CheckOnPowderTest;
|
|||
|
unsigned int m_MaskTopLeftX;
|
|||
|
unsigned int m_MaskTopLeftY;
|
|||
|
unsigned int m_MaskTopRightX;
|
|||
|
unsigned int m_MaskTopRightY;
|
|||
|
unsigned int m_MaskBottomLeftX;
|
|||
|
unsigned int m_MaskBottomLeftY;
|
|||
|
unsigned int m_MaskBottomRightX;
|
|||
|
unsigned int m_MaskBottomRightY;
|
|||
|
float m_TransformTopLeftX;
|
|||
|
float m_TransformTopLeftY;
|
|||
|
float m_TransformTopRightX;
|
|||
|
float m_TransformTopRightY;
|
|||
|
float m_TransformBottomLeftX;
|
|||
|
float m_TransformBottomLeftY;
|
|||
|
float m_TransformBottomRightX;
|
|||
|
float m_TransformBottomRightY;
|
|||
|
// ÿ<><C3BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD>̷<EFBFBD><CCB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>ֵ
|
|||
|
unsigned int m_PerIslandCntThreshold;
|
|||
|
// <20><><EFBFBD><EFBFBD>δ<EFBFBD>̷<EFBFBD><CCB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2><EFBFBD>Ϊ<EFBFBD>뾶<EFBFBD><EBBEB6>Բ<EFBFBD><D4B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>m_AreaThresholdFactor
|
|||
|
float m_AreaThresholdFactor;
|
|||
|
// <20><><EFBFBD><EFBFBD>δ<EFBFBD>̷<EFBFBD><CCB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD>ڲ<EFBFBD><DAB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>m_LengthThresholdFactor
|
|||
|
float m_LengthThresholdFactor;
|
|||
|
// <20><><EFBFBD><EFBFBD><EFBFBD>̷۳<CCB7><DBB3>Դ<EFBFBD><D4B4><EFBFBD>
|
|||
|
unsigned int m_RetryTimes;
|
|||
|
// ͼ<><CDBC><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>ֵ
|
|||
|
unsigned int m_BinaryThreshold;
|
|||
|
|
|||
|
int m_CheckType;
|
|||
|
float m_UncoverPercentage;
|
|||
|
|
|||
|
bool m_IsUpPartNotLight; //<2F>ϲ<EFBFBD><CFB2><EFBFBD><EFBFBD>Ȳ<EFBFBD><C8B2><EFBFBD>
|
|||
|
int m_ImageScale;
|
|||
|
int m_GrayOffset;
|
|||
|
public:
|
|||
|
static string CONFIG_NAME;
|
|||
|
static string FIELD_ENABLE;
|
|||
|
static string FIELD_MASK_TOP_LEFT_X;
|
|||
|
static string FIELD_MASK_TOP_LEFT_Y;
|
|||
|
static string FIELD_MASK_TOP_RIGHT_X;
|
|||
|
static string FIELD_MASK_TOP_RIGHT_Y;
|
|||
|
static string FIELD_MASK_BOTTOM_LEFT_X;
|
|||
|
static string FIELD_MASK_BOTTOM_LEFT_Y;
|
|||
|
static string FIELD_MASK_BOTTOM_RIGHT_X;
|
|||
|
static string FIELD_MASK_BOTTOM_RIGHT_Y;
|
|||
|
static string FIELD_TRANSFORM_TOP_LEFT_X;
|
|||
|
static string FIELD_TRANSFORM_TOP_LEFT_Y;
|
|||
|
static string FIELD_TRANSFORM_TOP_RIGHT_X;
|
|||
|
static string FIELD_TRANSFORM_TOP_RIGHT_Y;
|
|||
|
static string FIELD_TRANSFORM_BOTTOM_LEFT_X;
|
|||
|
static string FIELD_TRANSFORM_BOTTOM_LEFT_Y;
|
|||
|
static string FIELD_TRANSFORM_BOTTOM_RIGHT_X;
|
|||
|
static string FIELD_TRANSFORM_BOTTOM_RIGHT_Y;
|
|||
|
static string FIELD_ISLAND_THRESHOLD;
|
|||
|
static string FIELD_AREA_FACTOR;
|
|||
|
static string FIELD_LENGTH_FACTOR;
|
|||
|
static string FIELD_RETRY_TIMES;
|
|||
|
static string FIELD_BINARY_THRESHOLD;
|
|||
|
static string FIELD_CHECK_ON_POWDER_TEST;
|
|||
|
static string FIELD_CHECK_TYPE;
|
|||
|
static string FIELD_UNCOVER_PERCENTAGE;
|
|||
|
static string FIELD_IS_UP_PART_NOT_LIGHT;
|
|||
|
static string FIELD_IMAGE_SCALE;
|
|||
|
static string FIELD_GRAY_OFFSET;
|
|||
|
};
|
|||
|
|