Flipped Image registration problem
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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');
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Geometric Transformation and Image Registration en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!