相机去畸变软件OCamCalib的使用方法

OCamCalib软件的使用方法

标签:相机标定


转载请说明:http://blog.csdn.net/hust_sheng/article/details/77976619


此软件方便易用,且精度高于OpenCV等普通工具,是相机去畸变的常用工具。详细见官网(可能需要翻墙)。


  • matlab进入对应目录
    比如 C:\Users\popsheng\Desktop\Scaramuzza_OCamCalib_v3.0_win

    • 输入ocam_calib
      打开下面的界面
  • 拍照要求

    ATTENTION!
    In order to obtain good calibration results, I suggest the following:

    1. Approach the checkerboard to the mirror or to the fisheye as much as you can (see sample images below). This will improve the calibration and will increase the chances that the Automatic Checkerboard Extraction tool finds all the corners! Make sure that every corner of the checkerboard is visible in each image. For the Automatic Checkerboard Extraction tool it is furthermore important that a white border is present around the pattern.
    2. Take pictures of the checkerboard in order to cover all the visible area of the camera, e.g. from all around the mirror. By doing this, you allow calibration to compensate for possible misalignments between the camera and mirrors axes. The second and most important reason for doing this is that it helps the automatic detection of the center of the omnidirectional image.
  • Load images
    Before loading the images, make sure that they are in the same folder of the toolbox files.(Copy all the images into OCamCalib folder)

  • click on the button Read names

    • 会提示:Basename camera calibration images (without number nor suffix):
      比如图片文件名是image1.jpg、image2.jpg… 这一步我们就输入image

    • 接下来会提示:Image format: ([]='r'='ras', 'b'='bmp', 't'='tif', 'g'='gif', 'p'='pgm', 'j'='jpg', 'm'='ppm') >> g 告诉我们指示文件类型

  • Extraction of grid corners

    • 会提示:Extraction of the grid corners on the images Type the images you want to process (e.g. [1 2 3], [] = all images) = 即我们可以选择处理那几张图片,直接回车表示处理全部图片

    • 接下来会提示:Number of squares along the X direction ([]=10) = 以及 Number of squares along the Y direction ([]=10) = 表示棋盘角点的个数,如果我们使用官网的棋盘,那么X就是6,Y就是8
      官网图片

    • 接下来会提示:Size dX of each square along the X direction ([]=30mm) = 以及 Size dX of each square along the Y direction ([]=30mm) = 棋盘方格宽度,可以点击回车

    • 接下来会提示:X coordinate (along height) of the omnidirectional image center = ([]=960) = 以及 Y coordinate (along width) of the omnidirectional image center = ([]=1280) =用于指定图像中心点坐标,可以直接回车,软件默认使用(height/2, width/2),

    • 接下来是:EXTRACTION OF THE GRID CORNERS Do you want to use the automatic image selection or do you want to process the images individually ( [] = automatic, other = individual )? 这一步表示我们可以选择处理某些图片,回车表示自动进行图像选择(忽略角点遮挡的图像),也是推荐的做法,回车即可

    软件会一次处理每张图片,即找到棋盘格角点,如下图所示:

  • lick on the button Calibration

    • 会提示:Degree of polynomial expansion ([]=4) = 即去除畸变的多项式展开度(幂值),默认值即可,直接回车

  • Find center
    软件会依次迭代查找每个图像的中心并计算输出
    Iteration 1...2...3...4...5...6...7...8...9...
    ...

    Note, if at any time you would like to modify the coordinates of the center, you can simply modify the value of the variables ocam_model.xc and ocam_model.yc, which respectively contain row and column of the center location.

  • Calibration Refinement
    非线性迭代估计相机内外参数,这一步我们可以设置迭代次数,还可以在处理的过程中点击回车停止迭代:
    This function alternately refines EXTRINSIC and INTRINSIC calibration parameters by using a non linear minimization method Because of the computations involved this refinement can take some seconds Loop interrupting: Press enter to stop refinement. (OCamCalib GUI must be selected!) Maximum number of iterations ([] = 100, 0 = abort, -1 = no limit) =

  • Reproject on images
    软件会根据估计的新校准参数重新投影所有格子角,且图像中心用红色圆圈进行了标注。

  • Show Extrinsic
    软件会展示棋盘格的空间位置:

  • Analyse error

    可以查看所有棋盘的每个点的重新投影错误(畸变和正常的差)的分布。颜色指的是棋盘的不同图像:

  • Recompute corners

    重新计算角点,提升准确率

    • 会提示:wintx ([] = 20) = winty ([] = 20) = 即容错窗口大小,回车默认即可
  • Show Calib Results
    展示校准结果:

  • Load, Save, and Export the calibration results
    一次点击Save Load Export Data即可,根目录下的 calib_results.txt就是我们需要的文件

  • 6
    点赞
  • 45
    收藏
    觉得还不错? 一键收藏
  • 36
    评论
1 2/3维图像分割工具箱 2 PSORT粒子群优化工具箱 3 matlab计量工具箱Lesage 4 MatCont7p1 5 matlab模糊逻辑工具箱函数 6 医学图像处理工具箱 7 人工蜂群工具箱 8 MPT3安装包 9 drEEM toolbox 10 DOMFluor Toolbox v1.7 11 Matlab数学建模工具箱 12 马尔可夫决策过程(MDP)工具箱MDPtoolbox 13 国立SVM工具箱 14 模式识别与机器学习工具箱 15 ttsbox1.1语音合成工具箱 16 分数阶傅里叶变换的程序FRFT 17 魔方模拟器与规划求解 18 隐马尔可夫模型工具箱 HMM 19 图理论工具箱GrTheory 20 自由曲线拟合工具箱ezyfit 21 分形维数计算工具箱FracLab 2.2 22 For-Each 23 PlotPub 24 Sheffield大学最新遗传算法工具箱 25 Camera Calibration 像机标定工具箱 26 Qhull(二维三维三角分解、泰森图)凸包工具箱 2019版 27 jplv7 28 MatlabFns 29 张量工具箱Tensor Toolbox 30 海洋要素计算工具箱seawater 31 地图工具箱m_map 32 othercolor配色工具包 33 Matlab数学建模工具箱 34 元胞自动机 35 量子波函数演示工具箱 36 图像局域特征匹配工具箱 37 图像分割graphcut工具箱 38 NSGA-II工具箱 39 chinamap中国地图数据工具箱(大陆地区) 40 2D GaussFit高斯拟合工具箱 41 dijkstra最小成本路径算法 42 多维数据快速矩阵乘法 43 约束粒子群优化算法 44 脑MRI肿瘤的检测与分类 45 Matlab数值分析算法程序 46 matlab车牌识别完整程序 47 机器人工具箱robot-10.3.1 48 cvx凸优化处理工具箱 49 hctsa时间序列分析工具箱 50 神经科学工具箱Psychtoolbox-3-PTB 51 地震数据处理工具CREWES1990版 52 经济最优化工具箱CompEcon 53 基于约束的重构分析工具箱Cobratoolbox 54 Schwarz-Christoffel Toolbox 55 Gibbs-SeaWater (GSW)海洋学工具箱 56 光声仿真工具箱K-Wave-toolbox-1.2.1 57 语音处理工具箱Sap-Voicebox 58 贝叶斯网工具箱Bayes Net Toolbox(BNT) 59 计算机视觉工具箱VFfeat-0.9.21 60 全向相机校准工具箱OCamCalib_v3.0 61 心理物理学数据分析工具箱Palamedes1_10_3 62 生理学研究工具箱EEGLAB 63 磁共振成像处理工具箱CONN 18b 64 matlab 复杂网络工具箱 65 聚类分析工具箱FuzzyClusteringToolbox 66 遗传规划matlab工具箱 67 粒子群优化工具箱 68 数字图像处理工具箱DIPUM Toolbax V1.1.3 69 遗传算法工具箱 70 鱼群算法工具箱OptimizedAFSAr 71 蚁群算法工具箱 72 matlab优化工具箱 73 数据包络分析工具箱 74 图像分割质量评估工具包 75 相关向量机工具箱 76 音频处理工具箱 77 nurbs工具箱 78 Nurbs-surface工具箱 79 grabit数据提取工具箱 80 量子信息工具箱QLib 81 DYNAMO工具箱 82 NEDC循环的整车油耗量 83 PlotHub工具箱 84 MvCAT_Ver02.01 85 Regularization Tools Version 4.1 86 MatrixVB 4.5(含注册) 87 空间几何工具箱 matGeom-1.2.2 88 大数计算工具箱 VariablePrecisionIntegers 89 晶体织构分析工具包 mtex-5.7.0 90 Minimal Paths 2工具箱 91 Matlab数学建模工具箱

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 36
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值