Flipped Image registration problem

3 visualizaciones (últimos 30 días)
Ibraheem Al-Dhamari
Ibraheem Al-Dhamari el 14 de Oct. de 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');

Respuestas (0)

Categorías

Más información sobre Geometric Transformation and Image Registration en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by