registration of two images i done but it required more execution time, please provide another code?

2 ビュー (過去 30 日間)
% Image Registration
clc;
clear all;
close all;
fixed = imread('high.jpg');
% figure(),imshow(fixed);
moving = imread('low.jpg');
figure, imshowpair(moving, fixed, 'montage')
title('Unregistered');
[optimizer,metric] = imregconfig('multimodal');
movingRegisteredDefault = imregister(moving, fixed, 'affine', optimizer, metric);
% % figure, imshowpair(movingRegisteredDefault, fixed);
% title('A: Default registration');
% disp(optimizer);
% disp(metric);
optimizer.InitialRadius = optimizer.InitialRadius/3.5;
movingRegisteredAdjustedInitialRadius = imregister(moving, fixed, 'affine', optimizer, metric);
% figure, imshowpair(movingRegisteredAdjustedInitialRadius, fixed);
% title('Adjusted InitialRadius');
optimizer.MaximumIterations = 300;
movingRegisteredAdjustedInitialRadius300 = imregister(moving, fixed, 'affine', optimizer, metric);
% figure, imshowpair(movingRegisteredAdjustedInitialRadius300, fixed)
% title('B: Adjusted InitialRadius, MaximumIterations = 300, Adjusted InitialRadius.');
tformSimilarity = imregtform(moving,fixed,'similarity',optimizer,metric);
Rfixed = imref2d(size(fixed));
movingRegisteredRigid = imwarp(moving,tformSimilarity,'OutputView',Rfixed);
% figure, imshowpair(movingRegisteredRigid, fixed);
tformSimilarity.T
movingRegisteredAffineWithIC = imregister(moving,fixed,'affine',optimizer,metric,...
'InitialTransformation',tformSimilarity);
figure(),
imshowpair(movingRegisteredAffineWithIC, fixed)
imwrite(movingRegisteredAffineWithIC,'Regi.jpg');

採用された回答

Matt J
Matt J 2015 年 4 月 7 日
There are lots of registration routines offered on the File Exchange that you could browse,

その他の回答 (0 件)

カテゴリ

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