关于multiplex的图片展示4个角度
每个子图窗的分布
%% phase
figure, set (gcf,'Position',[0,0,600,600]), % 2行2列排布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]), % 2行2列排布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');