资源简介
傅里叶梅林变换实现图像配准,对旋转,缩放,剪切,平移都有效
代码片段和文件信息
% I=imread(‘lena.bmp‘);
% I=double(I);
% I=imrotate(I90);
%
% Ic=fftshift(fft2(I));
% logIc=log(1+abs(Ic));
% figure(3);
% imshow(logIc[]);
% output = logpolar(logIc);
% figure(4);
% imshow(output[]);
%%%%%%%验证两幅图像的傅里叶梅林变换的幅值是否相等
clear;
clc;
% Load first image (I1)
I1 = imread(‘lena_cropped_rotated_shifted.bmp‘);
I1=double(I1);
% Load second image (I2)
I2 = imread(‘lena.bmp‘);
I2=double(I2);
% ---------------------------------------------------------------------
% Convert both to FFT centering on zero frequency component
SizeX = size(I1 1);
SizeY = size(I1 2);
FA = fftshift(fft2(I1));
FB = fftshift(fft2(I2));
% Output (FA FB)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 1744 2011-04-09 10:52 RegsiterFM\example.asv
....... 1832 2011-04-09 15:58 RegsiterFM\example.m
....... 66614 2008-04-27 20:44 RegsiterFM\lena.bmp
....... 66614 2008-04-27 20:57 RegsiterFM\lena_cropped.bmp
....... 66614 2008-04-27 20:57 RegsiterFM\lena_cropped_rotated.bmp
....... 66614 2008-04-27 21:00 RegsiterFM\lena_cropped_rotated_shifted.bmp
....... 66616 2011-04-09 10:51 RegsiterFM\lena_cropped_scale.bmp
....... 66614 2008-04-27 20:59 RegsiterFM\lena_cropped_shifted.bmp
....... 721 2011-03-29 11:12 RegsiterFM\logpolar.m
....... 479 2011-04-09 16:20 RegsiterFM\main.asv
....... 65 2011-04-09 11:18 RegsiterFM\normlize.m
....... 12690 2011-04-08 15:30 RegsiterFM\Register.asv
....... 12833 2011-04-15 11:32 RegsiterFM\Register.m
....SH. 29696 2011-04-28 21:41 RegsiterFM\Thumbs.db
....... 2561 2011-04-08 11:35 RegsiterFM\transformImage.asv
....... 2631 2011-04-08 11:49 RegsiterFM\transformImage.m
目录 0 2011-04-15 09:05 RegsiterFM
----------- --------- ---------- ----- ----
464938 17
评论
共有 条评论