% Example,
% % Read two greyscale images of Lena
Imoving=imread('images/lenag1.png');
Istatic=imread('images/lenag2.png');
%
% % Register the images
[Ireg,O_trans,Spacing,M,Bx,By,Fx,Fy] = register_images(Imoving,Istatic);
%
% % Show the registration result
figure,
subplot(2,2,1), imshow(Imoving); title('moving image');
subplot(2,2,2), imshow(Istatic); title('static image');
subplot(2,2,3), imshow(Ireg); title('registerd moving image');
% % Show also the static image transformed to the moving image
Ireg2=movepixels(Istatic,Fx,Fy);
subplot(2,2,4), imshow(Ireg2); title('registerd static image');
%
% % Show the transformation fields
figure,
subplot(2,2,1), imshow(Bx,[]); title('Backward Transf. in x direction');
subplot(2,2,2), imshow(Fx,[]); title('Forward Transf. in x direction');
subplot(2,2,3), imshow(By,[]); title('Backward Transf. in y direction');
subplot(2,2,4), imshow(Fy,[]); title('Forward Transf. in y direction');
%
% % Calculate strain tensors
E = strain(Fx,Fy);
% % Show the strain tensors
figure,
subplot(2,2,1), imshow(E(:,:,1,1),[-1 1]); title('Strain Tensors Exx');
subplot(2,2,2), imshow(E(:,:,1,2),[-1 1]); title('Strain Tensors Exy');
subplot(2,2,3), imshow(E(:,:,2,1),[-1 1]); title('Strain Tensors Eyx');
subplot(2,2,4), imshow(E(:,:,2,2),[-1 1]); title('Strain Tensors Eyy');
% Example with Landmarks,
%
% % Read two images with triangles inside
Imoving=imread('images/landmarks1.png');
% Istatic=imread('images/landmarks2.png');
%
% % Load the corresponding (matched) points
load('images/landmarks');
%
% % Register the images affine
Options = struct('Points1',Points1,'Points2',Points2,'PStrength',PStrength);
Ireg = register_images(Imoving,Istatic,Options);
%
% % Show the start images
figure, imshow(Imoving+Istatic,[]);
% % Show the registration result
figure, imshow(Ireg+Istatic,[]);
% Function is written by D.Kroon University of Twente (July 2009)
% add all needed function paths
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【达摩老生出品,必属精品,亲测校正,质量保证】 资源名:ffd算法_用于ffd的运行_快速图像配准算法_matlab 资源类型:matlab项目全套源码 源码说明: 全部项目源码都是经过测试校正后百分百成功运行的,如果您下载后不能运行可联系我进行指导或者更换。 适合人群:新手及有一定经验的开发人员
资源推荐
资源详情
资源评论
收起资源包目录
ffd算法_用于ffd的运行_快速图像配准算法_matlab.zip (2个子文件)
ffd算法_用于ffd的运行_快速图像配准算法_matlab
Matlab实现无约束条件下普列姆(Prim)算法.docx 14KB
ffd2d.m 2KB
共 2 条
- 1
资源评论
- 宁_baby2023-08-09资源内容总结的很到位,内容详实,很受用,学到了~
- tuodfp2023-11-24资源很实用,对我启发很大,有很好的参考价值,内容详细。
- Charitydany2024-01-17感谢资源主的分享,很值得参考学习,资源价值较高,支持!
- 工控老马2022-05-08用户下载后在一定时间内未进行评价,系统默认好评。
阿里matlab建模师
- 粉丝: 3230
- 资源: 2782
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功