rotate an image to register with another one

6 ビュー (過去 30 日間)
talayeh ghodsi
talayeh ghodsi 2019 年 7 月 1 日
コメント済み: talayeh ghodsi 2019 年 7 月 1 日
hi everybody
i have to images. i need first rotate one of them to registere 2 control pints. i need to register control point 1 of both of them to be in the same direction
moving=rgb2gray(imread('4ch-70%-fliped.jpg'))
fixedd=rgb2gray(imread('4-chamber view41.jpg'))
fixed=imresize(fixedd,size(moving))
imshowpair(moving,fixed,'montage')
h=cpselect(moving,fixed)
tform = fitgeotrans(movingPoints,fixedPoints,'?')
fixedregistered = imwarp(fixed,tform,'OutputView',imref2d(size(moving)));
figure
imshowpair(moving,fixedregistered)
i dont know what should i put instead of ? in the tform because i just want the rotation of affine, i dont want to deform the moving image

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 7 月 1 日
編集済み: KALYAN ACHARJYA 2019 年 7 月 1 日
  1 件のコメント
talayeh ghodsi
talayeh ghodsi 2019 年 7 月 1 日
but what will be the role of control point?

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

カテゴリ

Help Center および File ExchangeInteractions, Camera Views, and Lighting についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by