资源简介
离轴全息记录与再现。复习衍射计算以及光学全息记录与再现原理,学习通过衍射计算完成光学离轴全息记录与再现过程仿真方法,理解第二代光学全息共轭像分离的条件,同时与通州全息作比较,注意观察再现像的特点。MATLAB代码
代码片段和文件信息
Uo=imread(‘guang.bmp‘); %调入作为物的图像
Uo=double(Uo(::1)); %取第一层,并转为双精度
figureimshow(Uo[])title(‘原始像‘)
[rc]=size(Uo);
lamda=6328*10^(-10);k=2*pi/lamda;%赋值波长、波数
zo=0.3086; %物到全息记录面的距离单位:米
Lo=5*10^(-3) %赋值衍射面(物)的尺寸单位:米
%= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
%用T-FFT算法完成全息图记录过程的计算
xo=linspace(-Lo/2Lo/2c);yo=linspace(-Lo/2Lo/2r);
[xoyo]=meshgrid(xoyo);
F0=exp(j*k*zo)/(j*lamda*zo);
F1=exp(j*k/2/zo.*(xo.^2+yo.^2));
fa=fft2(Uo); fF1=fft2(F1);
Fuf=fa.*fF1;
O=F0.*fftshift(ifft2(Fuf)); %在全息记录面上的光场分布
I=O.*conj(O); %全息记录面上的光强分布
figureimshow(I[])colormap(pink)title(‘衍射图‘)
%下面加入参考光
alpha=pi/2.00; %参考光与x轴间的夹角
beita=pi/2.02; %参考光与y轴间的夹角
R=exp(j*k*(xo*cos(alpha)+yo*cos(beita))); %参考光
%下面计算参、物光在全息记录面上的干涉得到全息图
inter=O./max(max(sqrt(I)))+R; %调节光束比,并使参、物光干涉
II= inter.*conj(inter); %干涉得到全息图
figureimshow(II[])title(‘全息图‘)
%= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
%下面计算再现
%先用S-FFT算法再现全息像
zi=0.3086; %全息图到观察面的距离单位:米
Li=r*lamda*zi/Lo %给出像面的尺寸单位:米
x=linspace(-Li/2Li/2c);y=linspace(-Li/2Li/2r);
[xy]=meshgrid(xy);
F0=exp(j*k*zi)/(j*lamda*zi)*exp(j*k/2/zi*(x.^2+y.^2));
F=exp(j*k/2/zi*(xo.^2+yo.^2)); %用T-FFT算法得到的全息图尺寸与物面一致
% 取再现照明光垂直入射C=1
holo=Lo/r*Lo/c*fftshift(fft2(II.*F*1)); holo=holo.*F0;
Ii=holo.*conj(holo);
figureimshow(Ii[0max(max(Ii))./1])colormap(pink)title(‘S-FFT再现像‘)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 21345 2016-05-17 15:58 holographic recording and playback\1.jpg
文件 36965 2016-05-17 15:58 holographic recording and playback\2.jpg
文件 44976 2016-05-17 15:58 holographic recording and playback\3.jpg
文件 20242 2016-05-17 15:58 holographic recording and playback\4.jpg
文件 1795 2014-02-12 11:41 holographic recording and playback\CX11_1.m
文件 1290 2014-02-12 11:42 holographic recording and playback\CX11_2.m
文件 1323 2014-02-12 12:09 holographic recording and playback\CX11_2_1.m
文件 1378 2014-02-12 12:17 holographic recording and playback\CX11_2_2.m
文件 786486 2008-10-26 11:59 holographic recording and playback\guang.bmp
文件 9437238 2011-06-03 22:00 holographic recording and playback\ho.bmp
目录 0 2016-05-17 16:03 holographic recording and playback
----------- --------- ---------- ----- ----
10353038 11
评论
共有 条评论