Skip to content
Snippets Groups Projects
Commit 685c5efc authored by mhby1g21's avatar mhby1g21
Browse files

rt60 plot

parent fd374c10
No related branches found
No related tags found
1 merge request!17Objective evaluation on realtime steam audio done
rir analysis objective evaluation/rt60.jpg

33.3 KiB

% Data
methods = {'Baked', 'Realtime'};
scenes = {'MR', 'KT', 'LR', 'ST', 'UL'};
% Estimated values
estimated = [
0.2061, 0.2084, 0.4773, 0.6477, 0.4098 % Baked
0.3965, 0.3998, 0.3308, 0.6864, 0.3910 % Realtime (only KT data provided so far)
];
% Recorded values
recorded = [
0.55, 0.47, 0.15, 1.85, 0.42; % Ground truth for baked
0.55, 0.47, 0.15, 1.85, 0.42; % Realtime measurement (only KT data provided)
];
% Create the plot
figure;
hold on;
% Colors and markers
colors = {'k', 'r', 'g', 'b', 'y'}; % Black, Red, Green, Blue
markers = {'^', 's'}; % Triangle, Square
% Plot points
for i = 1:length(methods)
for j = 1:length(scenes)
if ~isnan(estimated(i,j)) % Only plot non-NaN values
plot(estimated(i,j), recorded(i,j), [colors{j}, markers{i}], ...
'MarkerSize', 8, 'LineWidth', 1.5, ...
'MarkerFaceColor', colors{j}, ...
'MarkerEdgeColor', 'black');
end
end
end
% Plot the diagonal line
plot([0, 2.5], [0, 2.5], 'k-', 'LineWidth', 1.5);
% Plot the JND limits (20%)
jnd = 0.20; % 20% JND
x = 0:0.1:2.5;
plot(x, x*(1+jnd), 'k--', 'LineWidth', 1);
plot(x, x*(1-jnd), 'k--', 'LineWidth', 1);
% Customize the plot
xlabel('Estimated (s)');
ylabel('Recorded (s)');
title('RT60s Comparison');
axis([0 2.5 0 2.5]);
grid on;
% Create legends
h_method = zeros(1, length(methods));
h_scene = zeros(1, length(scenes));
% Method legend entries
for i = 1:length(methods)
h_method(i) = plot(NaN, NaN, ['k', markers{i}], ...
'MarkerSize', 8, 'LineWidth', 1.5);
end
% Scene legend entries
for j = 1:length(scenes)
h_scene(j) = plot(NaN, NaN, [colors{j}, 's'], ...
'MarkerSize', 8, 'LineWidth', 1.5, ...
'MarkerFaceColor', colors{j}, ...
'MarkerEdgeColor', 'black');
end
% Combined legend
legend([h_method, h_scene], [methods, scenes], 'Location', 'northwest');
hold off;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment