Flipped Image registration problem

2 Ansichten (letzte 30 Tage)
Ibraheem Al-Dhamari
Ibraheem Al-Dhamari am 14 Okt. 2015
Hi, I am experimenting image registration in Matlab. How can I register an image with a flipped versions of this image? any suggestion? Here is an example:
clc ; clear; close all;
fixed = imread('cameraman.tif');
moved = flip(fixed,2);
figure, imshowpair(fixed, moved, 'montage')
title( 'Un-registred');
[optimizer,metric] = imregconfig('monomodal')
optimizer.MaximumIterations = 600;
registered = imregister(moved, fixed, 'affine', optimizer, metric);
figure, imshowpair(fixed, registered, 'montage')
title( 'registred');
I also tried these codes but nothing work:
tformSimilarity = imregtform(moved,fixed,'similarity',optimizer,metric);
registered = imregister(moved,fixed,'affine',optimizer,metric,...
'InitialTransformation',tformSimilarity);
figure, imshowpair(fixed, registered, 'montage')
title( 'registred');
% another try
tformEstimate = imregcorr(moved,fixed);
Rfixed = imref2d(size(fixed));
registered = imwarp(moved,tformEstimate,'OutputView',Rfixed);
figure, imshowpair(fixed, registered, 'montage')
title( 'registred');

Antworten (0)

Kategorien

Mehr zu Geometric Transformation and Image Registration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by