1 Star 0 Fork 4

钟涛/Shack-Hartmann-Simulator_1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pintarWFs.m 940 Bytes
一键复制 编辑 原始数据 按行查看 历史
SergioBonaqueGonzalez 提交于 2017-03-01 13:55 . Update pintarWFs.m
function pintarWFs(W,Wrec,pupilpintar)
%Created by Sergio Bonaque-Gonzalez. Optical Engineer.
% This function paints the wavefront.
maximo=max(max(max(W)),max(max(Wrec)));
maximo2=max(maximo,max(max(W-Wrec)));
minimo=min(min(min(W)),min(min(Wrec)));
minimo2=min(minimo,min(min(W-Wrec)));
figure
set(gcf,'color','w');
suptitle('Phases. All with the same scale')
subplot(2,2,1);
imshow(W.*pupilpintar,[])
caxis manual
caxis([minimo2 maximo2]);
title('Original')
colorbar
subplot(2,2,2);
imshow(Wrec.*pupilpintar,[])
caxis manual
caxis([minimo2 maximo2]);
title('Recuperada')
colorbar
subplot(2,2,3);
imshow((W-Wrec).*pupilpintar,[])
caxis manual
caxis([minimo2 maximo2]);
title('ERROR (Original phase minus recovered phase)')
colorbar
subplot(2,2,4);
imshow((W-Wrec).*pupilpintar,[])
title('ERROR (Original phase minus recovered phase) AUTO-SCALED')
colorbar
drawnow();
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Matlab
1
https://gitee.com/aaron_zhong/Shack-Hartmann-Simulator_1.git
[email protected]:aaron_zhong/Shack-Hartmann-Simulator_1.git
aaron_zhong
Shack-Hartmann-Simulator_1
Shack-Hartmann-Simulator_1
master

搜索帮助