其他分享
首页 > 其他分享> > 2021-10-22 MATLAB水平拼接两幅图

2021-10-22 MATLAB水平拼接两幅图

作者:互联网

涡旋光的螺旋相位图## 标题MATLAB中实现两幅图的水平拼接

lambda = 638.8*nm;

Pitch = 20*um;
M_a = 1200;
N_a = 950;
xa =[-N_a/2:N_a/2-1]*Pitch;
ya = [-M_a/2:M_a/2-1]’*Pitch;

[theta,rou]=cart2pol(xa,ya);
l1=3 ;
l=1
theta_offset = pi;
vox1 = exp(l1j(theta+theta_offset));
vox1 = (vox1);
vox2 = exp(lj(theta+theta_offset));
vox2 = (vox2);
Image_1=mat2gray(angle(vox1));
Image_2=mat2gray(angle(vox2));
figure()
imshow(Image_1);
imshow(Image_2);
imwrite(Image_1,‘fig_1.jpg’);
imwrite(Image_1,‘fig_2.jpg’);
%水平拼接两幅图

C=[Image_1,Image_2]
[M_a,N_a]=size©

figure()
imshow©

标签:10,两幅,22,vox1,Image,vox2,拼接,2021,theta
来源: https://blog.csdn.net/weixin_44918412/article/details/120912268