restore.m
资源名称:cx9.rar [点击查看]
上传用户:xueli1969
上传日期:2022-07-27
资源大小:19k
文件大小:0k
源码类别:
通讯编程文档
开发平台:
Matlab
- function Q=restore(structure)
- handles=structure;
- I=handles.I;
- J=handles.J;
- x=handles.out(1);
- y=handles.out(2);
- ang=handles.out(3);
- se = translate(strel(1),[x y]);
- J = imdilate(J,se);
- J = imrotate(J,ang,'nearest','crop');
- [m,n]=size(I);
- I=edge(I,'canny')*255;
- J=edge(J,'canny')*255;
- QI=zeros(m,n,3);
- QJ=zeros(m,n,3);
- QI(:,:,1)=I;
- QJ(:,:,2)=J;
- Q=QI+QJ;
- Q=uint8(Q);