久久久久久久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)換單一顏色)
主站蜘蛛池模板: 午夜看看 | 午夜精品一区二区三区在线观看 | 亚洲一区二区久久 | 日本精品久久久久久久 | 妖精视频一区二区三区 | 国产精品国产a级 | 亚洲国产aⅴ精品一区二区 免费观看av | 97天天干 | 国产精品成人一区二区三区 | 国产日韩精品一区二区三区 | 色婷婷久久久久swag精品 | 成人久久网 | 亚洲一区中文字幕在线观看 | 欧美九九九 | 成年女人免费v片 | 国产精品一区在线观看 | 9191成人精品久久 | 久久中文字幕在线 | 精品久久香蕉国产线看观看亚洲 | 龙珠z在线观看 | 国产精品免费高清 | 青青草在线视频免费观看 | 免费视频二区 | 欧美激情黄色 | 91久久久久久久久久久 | 国产99久久久国产精品下药 | 国产91亚洲精品一区二区三区 | 成人免费在线视频 | 麻豆视频在线免费看 | 亚洲精品一区二区 | 亚洲精品久久久蜜桃 | 欧美激情精品久久久久 | 阿v视频在线观看 | 成人性生交a做片 | 91欧美精品成人综合在线观看 | 国产精品视频97 | 97久久精品 | 日韩毛片在线视频 | 99精品免费视频 | 久久毛片 | 成在线人视频免费视频 |