-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshowOrbits.m
62 lines (47 loc) · 1.62 KB
/
showOrbits.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
dBW.X1 = permute(readH5Dump('/Data/20191108_k2d8smr010_Volunteer_e02281_s00002_ksfsedixondbwfse/X.h5'),[3 2 4 1]);
dBW.pocs = dft(permute(readH5Dump(['/Data/20191108_k2d8smr010_Volunteer_e02281_s00002_ksfsedixondbwfse/pocs.h5']),[3 2 4 1]),-1,1);
sl = 3;
rows = 30:300;
cols = 45:270;
dBW.X1 = squeeze(abs(dBW.X1(rows,cols,sl,:)));
dBW.pocs = squeeze(abs(dBW.pocs(rows,cols,sl,:)));
ipscale = [0 4e5];
wscale = [0 2e5];
close all;
uf = 2;
f1 = figure('name','W','units','normalized','position',[0.3 0 .3 .5]);
ha1=axes;
imagesc(ha1,abs(imresize(dBW.X1(:,:,1),uf,'bicubic')),'parent',ha1);
axis equal;
colormap gray;
f2 = figure('name','F','units','normalized','position',[0.0 0.0 .3 .5]);
ha2=axes;
imagesc(f2,abs(imresize(dBW.X1(:,:,2),uf,'bicubic')),'parent',ha2);
axis equal;
colormap gray;
f3 = figure('name','POCS1','units','normalized','position',[0.3 0.5 .3 .5]);
ha3=axes;
imagesc(abs(imresize(dBW.pocs(:,:,1),uf,'bicubic')),'parent',ha3);
axis equal;
colormap gray;
f4 = figure('name','POCS2','units','normalized','position',[0.0 0.5 .3 .5]);
ha4=axes;
imagesc(abs(imresize(dBW.pocs(:,:,2),uf,'bicubic')),'parent',ha4);
axis equal;
colormap gray;
f5 = figure('name','genIP','units','normalized','position',[0.0 0.5 .3 .5]);
ha5=axes;
imagesc(abs(imresize(dBW.X1(:,:,2) + dBW.X1(:,:,1),uf,'bicubic')),'parent',ha5);
axis equal;
colormap gray;
%%
set([ha2 ha4],'clim',ipscale)
set([ha1 ha3],'clim',wscale)
saveas(f1,[get(f1,'name') '.svg']);
saveas(f2,[get(f2,'name') '.svg']);
saveas(f3,[get(f3,'name') '.svg']);
saveas(f4,[get(f4,'name') '.svg']);
close all;
function A = amplifyimage(A, r, c, amp)
A(r,c,:) = A(r,c,:) * amp;
end