-
Notifications
You must be signed in to change notification settings - Fork 1
/
DL_display_image.m
42 lines (31 loc) · 979 Bytes
/
DL_display_image.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
function DL_display_image(GG,out_mat);
% DL_display_image
% plot raw image, with overlaing damage boundries
% WAL3
% 12/27/2020
figure();
subplot(3,1,1);
imagesc(GG);
title('Raw stained tissue');
axis('tight');
axis('off')
subplot(3,1,2);
hold on;
imagesc(mean(GG,3));
colormap(gray);
%for i = 1:length(out_mat.B); plot(out_mat.B{i}(:,2),out_mat.B{i}(:,1),'color', [0 .3 0 0.8],'lineWidth',1); end;
for i = 1:length(out_mat.B2); plot(out_mat.B2{i}(:,2),out_mat.B2{i}(:,1),'color', [1 0 0 0.6],'lineWidth',1); end;
axis('tight');
axis('off')
set(gca,'YDir','reverse')
title(' Severe zone');
subplot(3,1,3);
hold on;
imagesc(mean(GG,3));
colormap(gray);
for i = 1:length(out_mat.B); plot(out_mat.B{i}(:,2),out_mat.B{i}(:,1),'color', [0 .3 0 0.8],'lineWidth',1); end;
%for i = 1:length(out_mat.B2); plot(out_mat.B2{i}(:,2),out_mat.B2{i}(:,1),'color', [1 0 0 0.6],'lineWidth',1); end;
axis('tight');
axis('off')
set(gca,'YDir','reverse')
title(' Damaged zone');