4angle multiplexing figure, phase, lee holo, interferogram

关于multiplex的图片展示4个角度
每个子图窗的分布
在这里插入图片描述

%% phase
figure, set (gcf,'Position',[0,0,600,600]),  % 22列排布4个子图,第一个
pppp=phase(:,101:1696,7);
pppp(1430:1500,300:569)=20;
 subplot(2,2,3),subplot('position', [0 0 0.495 0.495]),imagesc(pppp,[-1,15]),axis equal, axis off, colormap jet
   subplot(2,2,1),subplot('position', [0 0.505 0.495 0.495]),imagesc(phase(:,101:1696,19),[-1,15]),axis equal, axis off, colormap jet
   subplot(2,2,4),subplot('position', [0.505 0 0.495 0.495]),imagesc(phase(:,101:1696,31),[-1,15]),axis equal, axis off, colormap jet
  subplot(2,2,2),subplot('position', [0.505 0.505 0.495 0.495]),imagesc(phase(:,101:1696,43),[-1,15]),axis equal, axis off, colormap jet
 saveas(gcf, 'D:\Dropbox\AAA_Shiyuan\manuscript\2020\GRF_proposal\scalebar50um.tiff'); 
%% colorbar
pp=zeros(500,200);
figure,imagesc(pp);colormap jet,c=colorbar('Position',[0.8,0.1,0.05,0.4],'fontsize',20,'TickLength',0.02,'Ticks',[cmin,cmax]),title(c,['\phi','[rad]']);axis equal,axis off,caxis([cmin,cmax]),
   set(c,'yTickLabel',num2str(get(c,'yTick')','%.0f'));
   saveas(gcf, 'D:\Dropbox\AAA_Shiyuan\manuscript\2020\GRF_proposal\colorbar.tiff'); 
%% hologram
holo_path='D:\Dropbox\high-speed privision profilometer\hardware\DLP6500\LeeHologram\0703\49Ag_uv-0.070711r0.43120.4312\2020_07_10_15_10_35\';
holoname=dir(holo_path);
st=7;
squ=[st:12:48];
for mm=1:4
    squn=squ(mm);
   A= imread([holo_path,holoname(squn+2).name]) ;
   [M,N]=size(A);
   bc=min(M,N);
   aa=A(1:bc,1:bc);
   cc=A(1:20,1:20);
   bb(:,:,mm)=aa;
   imwrite(aa,['D:\Dropbox\AAA_Shiyuan\manuscript\2020\GRF_proposal\holo\',num2str(squn),'.tif']);
    imwrite(cc,['D:\Dropbox\AAA_Shiyuan\manuscript\2020\GRF_proposal\holo\small',num2str(squn),'.tif']);
    
end
figure, set (gcf,'Position',[0,0,600,600]),  % 22列排布4个子图,第一个
 subplot(2,2,3),subplot('position', [0 0 0.495 0.495]),imshow(bb(:,:,1)),axis equal, axis off,
   subplot(2,2,1),subplot('position', [0 0.505 0.495 0.495]),imshow(bb(:,:,2)),axis equal, axis off, 
   subplot(2,2,4),subplot('position', [0.505 0 0.495 0.495]),imshow(bb(:,:,3)),axis equal, axis off, 
  subplot(2,2,2),subplot('position', [0.505 0.505 0.495 0.495]),imshow(bb(:,:,4)),axis equal, axis off,
saveas(gcf,['D:\Dropbox\AAA_Shiyuan\manuscript\2020\GRF_proposal\holo\stitch',num2str(st),'.tif']); 
%%
data_path='I:\0818\2\data\';
data_name=dir(data_path);
no=5;
AA=imread([data_path,data_name(no+2).name]);
BB=AA(301:end,301:end);
CC=BB;
CC(4500:4525,500:1308)=255;
figure,imshow(BB,[])
imwrite(BB,['D:\Dropbox\AAA_Shiyuan\manuscript\2020\GRF_proposal\holo\interfero',num2str(no),'.tif']);
imwrite(CC,['D:\Dropbox\AAA_Shiyuan\manuscript\2020\GRF_proposal\holo\interferoscalebar50um',num2str(no),'.tif']);
%%
ppp=phase(:,:,7);
pp=ppp(:,101:1696);
cmin=0;
cmax=15;
figure(5),set (gcf,'Position',[200,0,500,500]);set (gca,'Position',[0,0,1,1]);imagesc(pp,[cmin,cmax]),set(gca,'FontSize',22), colorbar, colormap jet, axis equal, axis off,title(['yz at middle']);
%c = colorbar; 
%set(c,'yTickLabel',num2str(get(c,'yTick')','%.3f'))
%  saveas(gcf, strcat(tomo_save_path, ['xy_mid_',num2str(start_idx),'.tiff']));
 saveas(gcf, 'D:\Dropbox\AAA_Shiyuan\manuscript\2020\GRF_proposal\p7.tiff');
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值