camAlgo/camCalib/sourceCode/FitMapParam.h
2025-08-16 15:25:29 +08:00

18 lines
441 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
// 定义多项式拟合的最高阶数(7次多项式)
#define FittingOrder 7
// 存储多项式拟合系数的结构体
struct FitParam {
double s[FittingOrder + 1]; // 系数数组s[0]是常数项s[1]是一次项系数...
};
// 对输入矩阵的每一行(或间隔行)进行多项式拟合,返回拟合参数矩阵
cv::Mat GetFitParamMap(const cv::Mat& map, int row_step);
// 从拟合参数矩阵重建原始图像
cv::Mat GetMapFromFitMap(const cv::Mat& map, const cv::Size size, int row_step);