畸变校正python
时间: 2023-08-20 09:06:40 浏览: 147
引用中提到了OpenCV中的cv.calibrateCamera函数,该函数用于相机的校准,返回相机的内参矩阵、畸变系数、旋转和平移向量等信息。函数参数objpoints表示物体点的坐标,imgpoints表示图像点的坐标,gray.shape[::-1表示图像的大小。中提到了重投影误差的计算方法。首先使用cv.projectPoints函数将物体点转换为图像点,然后计算变换后的图像点与原始图像点之间的差异,最后求得所有校准图像的误差的算术平均值。中给出了一个去畸变的示例代码。代码使用cv.fisheye.initUndistortRectifyMap函数进行畸变校正,并将校正后的图像保存为result_1.png。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *2* [opencv-python光学畸变校准](https://blog.csdn.net/weixin_43788282/article/details/124403033)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *3* [python_图像去畸变/图像矫正](https://blog.csdn.net/shyjhyp11/article/details/112578748)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文