【未完,占坑后补,过程代码已附,可参考】

张正友棋盘法定标--Matlab【Camera Calibration Toolbox】

  • 一、Kinect2.0采集RGB-D数据
    • 1.1 安装驱动及数据采集
    • 1.2 棋盘格子文件
    • 1.3 数据
  • 二、Camera Calibration Toolbox下载安装
    • 2.1 Camera Calibration Toolbox下载
    • 2.2 Camera Calibration Toolbox路径
  • 三、MATLAB中操作步骤
    • 3.1
    • 3.2
    • 3.3
    • 3.n-x
    • 3.n 过程代码

一、Kinect2.0采集RGB-D数据

1.1 安装驱动及数据采集

详见上文《Kinect2.0采集RGB-D数据》

1.2 棋盘格子文件

三种,chess5x7x0.03、chess7x9x0.025、chess9x11x0.02,按需选择打印出来就可以了。提供两种下载方式哈~

1.2.1 云盘:https://pan.baidu.com/s/158qM2XZhD7E5rSUbC_leDA
提取码:qpgz

1.2.2 CSDN【设置了0积分下载】chess5x7x0.03、chess7x9x0.025、chess9x11x0.02

1.3 数据

【截图待补】

二、Camera Calibration Toolbox下载安装

2.1 Camera Calibration Toolbox下载

Camera Calibration Toolbox下载

2.2 Camera Calibration Toolbox路径

将解压后得到的toolbox_calib文件夹放在你的MATLAB工具箱toolbox下,例如我的路径是F:\Download\R2019a\toolbox\toolbox_calib

三、MATLAB中操作步骤

【待补充,可见 3.n过程代码】

3.1

3.2

3.3

3.n-x

3.n 过程代码

>>calib_gui.            color10.jpg  color13.jpg  color16.jpg  color19.jpg  color21.jpg  color5.jpg   color8.jpg
..           color11.jpg  color14.jpg  color17.jpg  color2.jpg   color3.jpg   color6.jpg   color9.jpg
color1.jpg   color12.jpg  color15.jpg  color18.jpg  color20.jpg  color4.jpg   color7.jpg   Basename camera calibration images (without number nor suffix): color
Image format: ([]='r'='ras', 'b'='bmp', 't'='tif', 'p'='pgm', 'j'='jpg', 'm'='ppm') j
Loading image 1...2...3...4...5...6...7...8...9...10...11...12...13...14...15...16...17...18...19...20...21...
doneExtraction of the grid corners on the images
Number(s) of image(s) to process ([] = all images) =
Window size for corner finder (wintx and winty):
wintx ([] = 15) = 5
winty ([] = 15) = 5
Window size = 11x11
Do you want to use the automatic square counting mechanism (0=[]=default)or do you always want to enter the number of squares manually (1,other)? Processing image 1...
Using (wintx,winty)=(5,5) - Window size = 11x11      (Note: To reset the window size, run script clearwin)
Click on the four extreme corners of the rectangular complete pattern (the first clicked corner is the origin)...
Size of each square along the X direction: dX=33mm
Size of each square along the Y direction: dY=33mm   (Note: To reset the size of the squares, clear the variables dX and dY)
If the guessed grid corners (red crosses on the image) are not close to the actual corners,
it is necessary to enter an initial guess for the radial distortion factor kc (useful for subpixel detection)
Need of an initial guess for distortion? ([]=no, other=yes)
Corner extraction...Processing image 2...
Using (wintx,winty)=(5,5) - Window size = 11x11      (Note: To reset the window size, run script clearwin)
Click on the four extreme corners of the rectangular complete pattern (the first clicked corner is the origin)...
Size of each square along the X direction: dX=33mm
Size of each square along the Y direction: dY=33mm   (Note: To reset the size of the squares, clear the variables dX and dY)
If the guessed grid corners (red crosses on the image) are not close to the actual corners,
it is necessary to enter an initial guess for the radial distortion factor kc (useful for subpixel detection)
Need of an initial guess for distortion? ([]=no, other=yes)
Corner extraction...........#一共21张图像,重复操作,逐个手动找角点,过程相同。Processing image 21...
Using (wintx,winty)=(5,5) - Window size = 11x11      (Note: To reset the window size, run script clearwin)
Click on the four extreme corners of the rectangular complete pattern (the first clicked corner is the origin)...
Size of each square along the X direction: dX=33mm
Size of each square along the Y direction: dY=33mm   (Note: To reset the size of the squares, clear the variables dX and dY)
If the guessed grid corners (red crosses on the image) are not close to the actual corners,
it is necessary to enter an initial guess for the radial distortion factor kc (useful for subpixel detection)
Need of an initial guess for distortion? ([]=no, other=yes)
Corner extraction...
doneAspect ratio optimized (est_aspect_ratio = 1) -> both components of fc are estimated (DEFAULT).
Principal point optimized (center_optim=1) - (DEFAULT). To reject principal point, set center_optim=0
Skew not optimized (est_alpha=0) - (DEFAULT)
Distortion not fully estimated (defined by the variable est_dist):Sixth order distortion not estimated (est_dist(5)=0) - (DEFAULT) .
Initialization of the principal point at the center of the image.
Initialization of the intrinsic parameters using the vanishing points of planar patterns.Initialization of the intrinsic parameters - Number of images: 21Calibration parameters after initialization:
#初始化后
Focal Length:          fc = [ 1084.06080   1084.06080 ]
Principal point:       cc = [ 959.50000   539.50000 ]
Skew:             alpha_c = [ 0.00000 ]   => angle of pixel = 90.00000 degrees
Distortion:            kc = [ 0.00000   0.00000   0.00000   0.00000   0.00000 ]Main calibration optimization procedure - Number of images: 21
Gradient descent iterations: 1...2...3...4...5...6...7...8...9...10...11...12...13...14...15...16...17...18...19...20...done
Estimation of uncertainties...doneCalibration results after optimization (with uncertainties):
#优化后
Focal Length:          fc = [ 1063.72280   1068.01717 ] +/- [ 5.90816   5.92483 ]
Principal point:       cc = [ 948.07325   548.72466 ] +/- [ 5.11955   4.66146 ]
Skew:             alpha_c = [ 0.00000 ] +/- [ 0.00000  ]   => angle of pixel axes = 90.00000 +/- 0.00000 degrees
Distortion:            kc = [ 0.04120   0.07129   -0.00274   0.00138  0.00000 ] +/- [ 0.01227   0.05601   0.00133   0.00202  0.00000 ]
Pixel error:          err = [ 0.21149   0.22402 ]Note: The numerical errors are approximately three times the standard deviations (for reference).Number(s) of image(s) to show ([] = all images) = Number(s) of image(s) to show ([] = all images) =
Pixel error:      err = [0.21149   0.22402] (all active images)Saving calibration results under Calib_Results.mat
Generating the matlab script file Calib_Results.m containing the intrinsic and extrinsic parameters...
done
Pixel error:      err = [0.21149   0.22402] (all active images)

参考并感谢:1.《相机标定简介与MatLab相机标定工具箱的使用》
2.《Camera Calibration Toolbox for Matlab使用教程》
3.《张正友标定、Camera Calibration Toolbox for Matlab》

张正友棋盘法定标--Matlab【Camera Calibration Toolbox】相关推荐

  1. 【一文弄懂】张正友标定法-完整学习笔记-从原理到实战

    张正友标定法-完整学习笔记-从原理到实战 文章目录 张正友标定法-完整学习笔记-从原理到实战 (零)前言: 1 为什么需要标定? 2 相机标定的已知条件和待求解是什么? 标定前的已知条件: 待求信息: ...

  2. 【计算机视觉】张正友标定法相机标定

    目录 一.相机标定 二.张正友标定法 2.1 张正友标定法概述 2.2 张正友标定法原理 2.2.1 坐标系 2.2.2 内参矩阵计算 2.2.3 外参矩阵计算 2.2.4 极大似然估计 2.2.5  ...

  3. 基于Matlab-采用张正友标定法对双目相机进行标定

    一.工作环境 操作系统:Win10 开发环境: Matlab 2019b(需要摄像头驱动包) 相机:USB双目相机,支持UVC标准协议 1.安装摄像头驱动包(OS Generic Video Inte ...

  4. 张正友标定法——相机参数的标定

    张正友标定法也称棋盘格标定法,是指张正友教授1998年提出的单平面棋盘格的摄像机标定方法.该方法介于传统的标定方法和自标定方法之间,使用简单实用性强,有以下优点: 不需要额外的器材,一张打印的棋盘格即 ...

  5. 六、张正友标定法小结

    六.张正友标定法小结 这一博文,是玉米后补上的.因为觉得前面用了三篇博文来描述张氏标定法,略显散乱.在这里总结一下,使条理清晰一点.另外关于张氏标定所得参数也还有两点需要澄清.下面这个总结,其实也是在 ...

  6. python 倒数两列_相机标定之张正友标定法数学原理详解(含python源码)

    一.相机标定的目的 我们首先要明白两个问题:1.相机是如何成像的?2.相机标定的目的是什么? 1.相机是如何成像的呢? 相机成像系统中,共包含四个坐标系:世界坐标系.相机坐标系.图像坐标系.像素坐标系 ...

  7. 【转载】张正友标定法翻译

    找到一篇张正友标定法的中文翻译,感觉翻译的还是很用心的,现记下来,以备以后浏览 https://blog.csdn.net/heroacool/article/details/50286677

  8. 标定代码:张正友标定法(matlab工具箱自编程序)(matlab)

    张正友标定法原理 张正友标定法,一般采用二维棋盘格标定板. 标定板制作链接:棋盘格 张正友标定法推导过程

  9. 计算机视觉——python3实现张正友棋盘相机标定图像

    照相机标定 前言:相机标定是我们相机拍摄的物体都处于三维世界坐标系中,而相机拍摄成像时把三维相机坐标系向二维图像坐标系转换.不同镜头成像时的转换矩阵不同可能引入失真,标定的作用是近似地估算出转换矩阵和 ...

最新文章

  1. 第三次作业:阅读《构建之法》1-5章有感
  2. wxWidgets:wxAnimationCtrl类用法
  3. strtolower_PHP strtolower()函数与示例
  4. C语言课后习题(8)
  5. Json.Net学习笔记(十二) 协议解析
  6. 软件工程——HelloWorld
  7. android布局参照示例_约束布局Android示例–第2部分
  8. Wincc 开机自检动态展示
  9. 在PHP项目中使用Standford Moss代码查重系统
  10. 通达信l2行情接口怎么用?
  11. 软件架构-解密电商系统商品模块业务
  12. 将实时频谱分析仪与HIF输出配合使用
  13. ZK实现SASL认证+Kafka连接ZK
  14. Games104 Lecture 6 游戏地形大气和云的渲染
  15. 增加tensor维度 torch
  16. Nodejs-npm
  17. python项目实战——银行取款机系统(六)
  18. 跟着小马哥学系列之 Spring IoC(进阶篇:类型转换)
  19. 2018考研数学一解析 ​​​
  20. win10 宽带拨号720联网错误

热门文章

  1. 7个可以改变一生的自学网站,每天3小时,效果直线上升!
  2. av_read_frame
  3. Linux配置(购买云服务器)
  4. 如何使用AE制作文字破碎动画?制作ae破碎文字特效教程分享
  5. 地理信息系统的发展趋势——网格GIS
  6. 如何提高学习欲--奖励机制
  7. 设备驱动中的kobject(kernel-4.7)
  8. 信捷plc modbus通信
  9. python爬取好友微信地区_python爬取微信信息--显示性别/地域/词云(附代码)
  10. 区块链治理:用编程迎接未来