フィルターのクリア

how can i translate a 2D image in x ,y directions using matlab?

3 ビュー (過去 30 日間)
mmm ssss
mmm ssss 2012 年 2 月 14 日
編集済み: Sean de Wolski 2013 年 10 月 11 日
hi all
i have a 2D image , how can i translated it in x direction by using
from :x-translation=-tx;to:x-translation=tx;step=5;
and in y direction
from :y-translation=-ty;to:y-translation=ty;step=5;
also , how can i select suitable values for tx and ty?
any help please?
Regards

採用された回答

Sean de Wolski
Sean de Wolski 2012 年 2 月 14 日
  5 件のコメント
mmm ssss
mmm ssss 2012 年 2 月 14 日
for example
elseif dims == 2
T_dims = [1 2]; %Dimensions in order
A = zeros(3);
A([1 5 9]) = 1;
A(3,1:2) = translation;
can you illustrate this to me?why you create A?
also about
translation =
[row_shift col_shift] for 2D images
how this can be modified according to my case?
from :x-translation=-tx;to:x-translation=tx;step=5;
and in y direction
from :y-translation=-ty;to:y-translation=ty;step=5;
i am new to matlab ,so please be simple in your reply.
regards
Sean de Wolski
Sean de Wolski 2012 年 2 月 14 日
You don't need to modify anything, read the help - it explains how to use the inputs to translate the way you want.
A is the transformation matrix.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by