Flipped Image registration problem
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!