久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如果已知外在和內(nèi)在參數(shù),則從 2D 圖像像素獲取

Get 3D coordinates from 2D image pixel if extrinsic and intrinsic parameters are known(如果已知外在和內(nèi)在參數(shù),則從 2D 圖像像素獲取 3D 坐標(biāo))
本文介紹了如果已知外在和內(nèi)在參數(shù),則從 2D 圖像像素獲取 3D 坐標(biāo)的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我正在使用 tsai algo 進(jìn)行相機(jī)校準(zhǔn).我得到了內(nèi)在和外在矩陣,但如何從該信息重建 3D 坐標(biāo)?

I am doing camera calibration from tsai algo. I got intrensic and extrinsic matrix, but how can I reconstruct the 3D coordinates from that inormation?

1) 我可以使用高斯消元法找到 X、Y、Z、W,然后點(diǎn)將是 X/W 、 Y/W 、 Z/W 作為齊次系統(tǒng).

1) I can use Gaussian Elimination for find X,Y,Z,W and then points will be X/W , Y/W , Z/W as homogeneous system.

2) 我可以使用OpenCV 文檔方法:

2) I can use the OpenCV documentation approach:

據(jù)我所知 u, v, R , t ,我可以計(jì)算 X,Y,Z.

as I know u, v, R , t , I can compute X,Y,Z.

然而,這兩種方法最終都會(huì)得到不正確的不同結(jié)果.

However both methods end up in different results that are not correct.

我做錯(cuò)了什么?

推薦答案

如果您有外部參數(shù),那么您就擁有了一切.這意味著您可以從外在變量(也稱為 CameraPose)獲得 Homography.Pose是一個(gè)3x4的矩陣,homography是一個(gè)3x3的矩陣,H定義為

If you got extrinsic parameters then you got everything. That means that you can have Homography from the extrinsics (also called CameraPose). Pose is a 3x4 matrix, homography is a 3x3 matrix, H defined as

                   H = K*[r1, r2, t],       //eqn 8.1, Hartley and Zisserman

其中K是相機(jī)內(nèi)在矩陣,r1r2是旋轉(zhuǎn)矩陣的前兩列,R;t 是平移向量.

with K being the camera intrinsic matrix, r1 and r2 being the first two columns of the rotation matrix, R; t is the translation vector.

然后將所有內(nèi)容除以 t3 歸一化.

Then normalize dividing everything by t3.

r3 列會(huì)發(fā)生什么,我們不使用它嗎?不,因?yàn)樗嵌嘤嗟模驗(yàn)樗亲藙?shì)的前 2 列的叉積.

What happens to column r3, don't we use it? No, because it is redundant as it is the cross-product of the 2 first columns of pose.

既然你有了單應(yīng)性,就投影點(diǎn).你的 2d 點(diǎn)是 x,y.將它們添加為 z=1,因此它們現(xiàn)在是 3d.按如下方式對(duì)其進(jìn)行投影:

Now that you have homography, project the points. Your 2d points are x,y. Add them a z=1, so they are now 3d. Project them as follows:

        p          = [x y 1];
        projection = H * p;                   //project
        projnorm   = projection / p(z);      //normalize

希望這會(huì)有所幫助.

這篇關(guān)于如果已知外在和內(nèi)在參數(shù),則從 2D 圖像像素獲取 3D 坐標(biāo)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Assertion failed (size.widthgt;0 amp;amp; size.heightgt;0)(斷言失敗(size.width0 amp;amp; size.height0))
Rotate an image in C++ without using OpenCV functions(在 C++ 中旋轉(zhuǎn)圖像而不使用 OpenCV 函數(shù))
OpenCV: process every frame(OpenCV:處理每一幀)
Why can#39;t I open avi video in openCV?(為什么我不能在 openCV 中打開 avi 視頻?)
OpenCV unable to set up SVM Parameters(OpenCV 無法設(shè)置 SVM 參數(shù))
Convert a single color with cvtColor(使用 cvtColor 轉(zhuǎn)換單一顏色)
主站蜘蛛池模板: 天天躁天天操 | 日本精品一区二区三区在线观看视频 | 中文字幕一级 | 欧美网址在线观看 | 国产最新网址 | 欧洲精品久久久久毛片完整版 | 精品国产区 | 久久一区二区三区四区五区 | 老司机精品福利视频 | 国产精品视频在线免费观看 | 国产黄色小视频在线观看 | 精品1区2区3区4区 | 97久久精品 | 天天爽天天干 | 毛片国产 | 亚洲人免费视频 | 蜜臀网| 天天看天天摸天天操 | 国产激情视频网址 | 91资源在线观看 | 国产探花在线观看视频 | 日本三级做a全过程在线观看 | 亚洲综合三区 | 99re6在线视频精品免费 | 久久99精品久久久久久国产越南 | 亚洲交性 | 天天操天天射综合网 | 羞羞网站在线免费观看 | 亚洲网站在线观看 | 一级毛片高清 | 精品国产乱码久久久久久老虎 | 一区二区三区亚洲精品国 | 极品粉嫩国产48尤物在线播放 | 亚洲日韩中文字幕一区 | 99re在线视频 | 色播久久| 国产在线麻豆精品入口 | 婷婷综合网| 欧美网址在线观看 | 亚洲va国产日韩欧美精品色婷婷 | 亚洲一区中文字幕 |