MATLAB Answers

Translation Matrix For Image Processing Confusion

8 ビュー (過去 30 日間)
Zamani Md Sani
Zamani Md Sani 2020 年 6 月 4 日
回答済み: Prabhan Purwar 2020 年 7 月 16 日
Hi,
Im quite confuse with the matrix translation use to translate image in 3D using homogenous coordinate. In Matlab the coordinat for tx and tx is at the bottom left
whereas there are a lot of example in the internet is at on the right corner and given with a very simple example from 2D conversion as in the image.
What is the difference or is it very similar?
Thanks
Zamani

  0 件のコメント

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

回答 (1 件)

Prabhan Purwar
Prabhan Purwar 2020 年 7 月 16 日
Hi,
These two representations of Translational Transformation are pretty the same and just vary in the way matrix multiplication takes place.
%MATLAB METHOD
>> [x y 1]*[1 0 0;0 1 0;tx ty 1]
ans =
[tx + x, ty + y, 1]
%OTHER METHOD
>> [1 0 tx;0 1 ty;0 0 1]*[x;y;1]
ans =
tx + x
ty + y
1
Thanks

  0 件のコメント

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

Community Treasure Hunt

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

Start Hunting!

Translated by