diff --git a/rir analysis objective evaluation/rt60.jpg b/rir analysis objective evaluation/rt60.jpg new file mode 100644 index 0000000000000000000000000000000000000000..30177de44012ff5a6fb66354d49047a1f45e5b28 Binary files /dev/null and b/rir analysis objective evaluation/rt60.jpg differ diff --git a/rir analysis objective evaluation/rt60.m b/rir analysis objective evaluation/rt60.m new file mode 100644 index 0000000000000000000000000000000000000000..15432e7108b385682715c0bc34352ceff4e336e8 --- /dev/null +++ b/rir analysis objective evaluation/rt60.m @@ -0,0 +1,73 @@ +% 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