How to make Matlab imwarp function not crop the moving image after registration?

2 ビュー (過去 30 日間)
Jihang Wang
Jihang Wang 2017 年 5 月 4 日
回答済み: Chaitral Date 2017 年 5 月 9 日
I'm using Matlab R2016b to align two images with different dimensions. A (smaller size) is my reference image and B (larger size) is my moving image which I need to register it on A. The Matlab registration pipeline works well but when I use function imwarp to align A and B together, it seems that the registered image B has been cropped to the same size as A but what I want is keeping B as the original size with only overlapping area overlay with A. I attached the code below.
tformSimilarity = imregtform(B,A,'similarity',optimizer,metric);
RegisteredB = imwarp(B,tformSimilarity, 'OutputView', imref2d(size(A)));
imshowpair(fixed, IColorRegistered, 'falsecolor')
Thanks for any suggestion!

回答 (1 件)

Chaitral Date
Chaitral Date 2017 年 5 月 9 日
Can you please send the images A & B? It is hard to suggest any solution without the actual input.

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by