-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathplot_linegraph3.m
More file actions
65 lines (55 loc) · 2.79 KB
/
plot_linegraph3.m
File metadata and controls
65 lines (55 loc) · 2.79 KB
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
61
62
63
64
%% Initialize
clc
close all;
clear all;
%% BIoU for HRNet
% Vis param
imgWidthSize = 500;
imgColumnSize = 500;
lw = 3.0;
ms = 20;
numLgdCol = 1;
titleFontSize = 19;
XFontSize = 20;
YFontSize = 20;
lgdFontSize = 18;
ticksFontSIze = 18;
linecolors = linspecer(5, 'qualitative');
LineColors = flipud(linecolors);
%% Visualization
fig = figure('Position', [200, 10, imgWidthSize, imgColumnSize]);
set(gca,'LooseInset', max(get(gca,'TightInset'), 0.02))
set(groot, 'defaultAxesTickLabelInterpreter','latex');
% set(AX1, 'position', [0.05 0.58 0.42 0.42])
x = [5, 7, 10, 20];
hrnet = [58.24 62.65 66.77 72.92];
multi = [60.19 64.51 68.49 74.40];
contextrast = [60.25 64.56 68.54 74.41];
contextrastpp = [60.60 64.96 68.99 74.93];
baseline_color = [0.1647 0.0353 0.26670];
sota_colors = [0.3718 0.7176 0.3612;
0.9451 0.9255 0.7843;
0.5216 0.6706 0.8118];
% plot(x, hrnet, '-o', 'LineWidth', lw, 'MarkerSize', ms, 'Color', baseline_color);
% hold on;
% plot(x, multi, '-v', 'LineWidth', lw, 'MarkerSize', ms, 'Color', sota_colors(3, :));
% plot(x, contextrast, '-d', 'LineWidth', lw, 'MarkerSize', ms, 'Color', sota_colors(2, :));
% plot(x, contextrastpp, '-s', 'LineWidth', lw, 'MarkerSize', ms, 'Color', sota_colors(1, :));
% set(gca, 'FontSize', ticksFontSIze);
%
% legend(['HRNet [27]$\;$', 'Multi [50]$\;$', 'Contextrast [51]$\;$', 'Contextrast++ (Ours)'], 'NumColumns', numLgdCol, "Location", "southeast", 'FontSize', lgdFontSize, 'interpreter','latex');
h1 = plot(x, hrnet, '-o', 'LineWidth', lw, 'MarkerSize', ms, 'Color', baseline_color, 'MarkerFaceColor', baseline_color, 'DisplayName', 'HRNet [27]');
hold on;
h2 = plot(x, multi, '-v', 'LineWidth', lw, 'MarkerSize', ms, 'Color', sota_colors(3, :), 'MarkerFaceColor', sota_colors(3, :), 'DisplayName', 'Multi [50]');
h3 = plot(x, contextrast, '-d', 'LineWidth', lw, 'MarkerSize', ms, 'Color', sota_colors(2, :), 'MarkerFaceColor', sota_colors(2, :),'DisplayName', 'Contextrast [51]');
h4 = plot(x, contextrastpp, '-s', 'LineWidth', lw, 'MarkerSize', ms, 'Color', sota_colors(1, :), 'MarkerFaceColor', sota_colors(1, :), 'DisplayName', 'Contextrast++ (Ours)');
set(gca, 'FontSize', ticksFontSIze);
legend([h1, h2, h3, h4], 'NumColumns', numLgdCol, 'Location', 'southeast', ...
'FontSize', lgdFontSize, 'Interpreter', 'latex');
% legend(['HRNet [27]$\;$', 'Multi [50]$\;$', 'Contextrast [51]$\;$', 'Contextrast++ (Ours)'], 'NumColumns', numLgdCol, "Location", "southeast", 'FontSize', lgdFontSize, 'interpreter','latex');
set(gca, 'XScale', 'log');
grid on;
xlabel("Pixel threshold, $\tau_B$ (pixel)", 'FontSize', XFontSize, 'interpreter','latex');
ylabel("Boundary-mIoU (\%) $\uparrow$", 'FontSize', YFontSize, 'interpreter','latex');
print(gcf, "imgs/biou_line_graph.png",'-dpng','-r300');
print -depsc 'imgs/biou_line_graph.eps'