96 lines
2.8 KiB
C++
96 lines
2.8 KiB
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
#include "../Controller/Base.h"
|
|
|
|
using namespace std;
|
|
|
|
#pragma pack(1)
|
|
class RecoatCheckCfg : public Base
|
|
{
|
|
public:
|
|
enum CheckType
|
|
{
|
|
WHOLE_PERCENTAGE = 0,
|
|
OVERLAP
|
|
};
|
|
|
|
RecoatCheckCfg();
|
|
~RecoatCheckCfg();
|
|
void GetUpdateSql(vector<string>& ups);
|
|
|
|
public:
|
|
char m_startFlag; //开始标记
|
|
BoolData* m_Enable;
|
|
BoolData* m_CheckOnPowderTest;
|
|
UIntData* m_MaskTopLeftX;
|
|
UIntData* m_MaskTopLeftY;
|
|
UIntData* m_MaskTopRightX;
|
|
UIntData* m_MaskTopRightY;
|
|
UIntData* m_MaskBottomLeftX;
|
|
UIntData* m_MaskBottomLeftY;
|
|
UIntData* m_MaskBottomRightX;
|
|
UIntData* m_MaskBottomRightY;
|
|
FloatData* m_TransformTopLeftX;
|
|
FloatData* m_TransformTopLeftY;
|
|
FloatData* m_TransformTopRightX;
|
|
FloatData* m_TransformTopRightY;
|
|
FloatData* m_TransformBottomLeftX;
|
|
FloatData* m_TransformBottomLeftY;
|
|
FloatData* m_TransformBottomRightX;
|
|
FloatData* m_TransformBottomRightY;
|
|
|
|
UIntData* m_PerIslandCntThreshold; //每个岛包含的未铺粉区域数目的阈值
|
|
|
|
FloatData* m_AreaThresholdFactor; //单个未铺粉区域的面积阈值等于以层厚为半径的圆的面积乘以m_AreaThresholdFactor
|
|
|
|
FloatData* m_LengthThresholdFactor; //单个未铺粉区域的轮廓长度阈值等于层厚乘以m_LengthThresholdFactor
|
|
|
|
UIntData* m_RetryTimes; //重新铺粉尝试次数
|
|
|
|
UIntData* m_BinaryThreshold; //图像二值化阈值
|
|
|
|
IntData* m_CheckType;
|
|
FloatData* m_UncoverPercentage;
|
|
|
|
BoolData* m_IsUpPartNotLight; //上部亮度不足
|
|
IntData* m_ImageScale;
|
|
IntData* m_GrayOffset;
|
|
|
|
UIntData* m_CheckLayerIndex;
|
|
|
|
char m_endFlag; //结束标记
|
|
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;
|
|
static string FIELD_CHECK_LAYER_INDEX;
|
|
};
|
|
|
|
#pragma pack() |