What matrix to use to estimate homography matrix in planar homography

12 ビュー (過去 30 日間)
sarvan_keep
sarvan_keep 2022 年 11 月 15 日
編集済み: Matt J 2022 年 11 月 16 日
If I have 4 point correspondences, eg: (x1,y1), (x2,y2), (x3,y3), (x4,y4), and I want to compute the H matrix.
I create the A matrix using the 4 points and have a 8*9 matrix.
I calculate SVD using [U, D, V] = svd(A).
Do I use U or V as the eigen vectors of the smallest eigen value to create H. How to create H matrix here?

採用された回答

Matt J
Matt J 2022 年 11 月 15 日
H=reshape(V(:,end),3,3);
  3 件のコメント
sarvan_keep
sarvan_keep 2022 年 11 月 16 日
Thank you. I understand. I am new to Matlab. Since matlab arranges matrices column-wise, do I not have to take a transpose to ensure the order of the H matrix? That is when I later use it to multiply it to some points of my choice.
Matt J
Matt J 2022 年 11 月 16 日
編集済み: Matt J 2022 年 11 月 16 日
If you apply H using a right-side multiplication H*x, as opposed to a left-side multiplication x.'*H, then yes, you will have to transpose.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRead, Write, and Modify Image についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by