GrpcPrint/PrintS/Config/bean/CameraCalibrationCfg.h
2024-03-19 17:45:12 +08:00

117 lines
3.2 KiB
C++

#pragma once
#include <string>
#include <vector>
using namespace std;
class CameraCalibrationCfg
{
public:
CameraCalibrationCfg();
~CameraCalibrationCfg();
void GetUpdateSql(vector<string>& ups);
public:
bool m_HadCalibration;
unsigned int m_CalibrationHPoints; //标定横向角点数
unsigned int m_CalibrationVPoints; //标定纵向角点数
unsigned int m_CalibrationGridHSize; //标定方格横向尺寸
unsigned int m_CalibrationGridVSize; //标定方格纵向尺寸
double m_CameraMatrix00;
double m_CameraMatrix01;
double m_CameraMatrix02;
double m_CameraMatrix10;
double m_CameraMatrix11;
double m_CameraMatrix12;
double m_CameraMatrix20;
double m_CameraMatrix21;
double m_CameraMatrix22;
double m_DistCoeffs0;
double m_DistCoeffs1;
double m_DistCoeffs2;
double m_DistCoeffs3;
double m_DistCoeffs4;
unsigned int m_FittingMagX; //放大倍数
int m_ImageTopLeftX;
int m_ImageTopLeftY;
int m_ImageTopRightX;
int m_ImageTopRightY;
int m_ImageBottomLeftX;
int m_ImageBottomLeftY;
int m_ImageBottomRightX;
int m_ImageBottomRightY;
int m_PlatformTopLeftX;
int m_PlatformTopLeftY;
int m_PlatformTopRightX;
int m_PlatformTopRightY;
int m_PlatformBottomLeftX;
int m_PlatformBottomLeftY;
int m_PlatformBottomRightX;
int m_PlatformBottomRightY;
int m_BinaryThresholdOffset;
int m_GrayRef;
unsigned int m_MagnifyScale;
float m_MatchRatio;
bool m_BlackFace;
bool m_ShowBinImage;
bool m_ShowCorners;
bool m_ShowAssist;
bool m_CoverImageJoin;
public:
static string CONFIG_NAME;
static string FIELD_HAD_CALIBRATION;
static string FIELD_CALIBRATION_H_POINTS;
static string FIELD_CALIBRATION_V_POINTS;
static string FIELD_CALIBRATION_GRID_H_SIZE;
static string FIELD_CALIBRATION_GRID_V_SIZE;
static string FIELD_CAMERA_MATRIX_00;
static string FIELD_CAMERA_MATRIX_01;
static string FIELD_CAMERA_MATRIX_02;
static string FIELD_CAMERA_MATRIX_10;
static string FIELD_CAMERA_MATRIX_11;
static string FIELD_CAMERA_MATRIX_12;
static string FIELD_CAMERA_MATRIX_20;
static string FIELD_CAMERA_MATRIX_21;
static string FIELD_CAMERA_MATRIX_22;
static string FIELD_DIST_COEFFS_0;
static string FIELD_DIST_COEFFS_1;
static string FIELD_DIST_COEFFS_2;
static string FIELD_DIST_COEFFS_3;
static string FIELD_DIST_COEFFS_4;
static string FIELD_FITTING_MAG_X;
static string FIELD_IMAGE_TOP_LEFT_X;
static string FIELD_IMAGE_TOP_LEFT_Y;
static string FIELD_IMAGE_TOP_RIGHT_X;
static string FIELD_IMAGE_TOP_RIGHT_Y;
static string FIELD_IMAGE_BOTTOM_LEFT_X;
static string FIELD_IMAGE_BOTTOM_LEFT_Y;
static string FIELD_IMAGE_BOTTOM_RIGHT_X;
static string FIELD_IMAGE_BOTTOM_RIGHT_Y;
static string FIELD_PLATFORM_TOP_LEFT_X;
static string FIELD_PLATFORM_TOP_LEFT_Y;
static string FIELD_PLATFORM_TOP_RIGHT_X;
static string FIELD_PLATFORM_TOP_RIGHT_Y;
static string FIELD_PLATFORM_BOTTOM_LEFT_X;
static string FIELD_PLATFORM_BOTTOM_LEFT_Y;
static string FIELD_PLATFORM_BOTTOM_RIGHT_X;
static string FIELD_PLATFORM_BOTTOM_RIGHT_Y;
static string FIELD_BINARY_THRESHOLD_OFFSET;
static string FIELD_GRAY_REF;
static string FIELD_MAGNIFY_SCALE;
static string FIELD_MATCH_RATIO;
static string FIELD_BLACK_FACE;
static string FIELD_SHOW_BIN_IMAGE;
static string FIELD_SHOW_CORNERS;
static string FIELD_SHOW_ASSIST;
static string FIELD_COVER_IMAGE_JOIN;
};