import matplotlib.pyplot as plt
datasets = ['ETH', 'HOTEL', 'UNIV', 'ZARA1', 'ZARA2', 'AVG']
dims = [4, 6, 8,10, 12]
errors = {
'ETH': [107, 65, 50, 39, 36],
'HOTEL': [36, 27, 23, 20,17],
'UNIV': [45, 23, 15, 11, 12],
'ZARA1': [38, 20, 12, 9, 10],
'ZARA2': [28, 14, 9, 6, 9],
'AVG': [51, 30, 22, 17, 19]
}
plt.figure(figsize=(10, 6))
for dataset in datasets:
plt.plot(dims, errors[dataset], marker='o', label=dataset)
plt.legend()
plt.title('L2 Distance Error vs Dim (Descriptor Dimension)')
plt.xlabel('Dim (Descriptor Dimension)')
plt.ylabel('L2 Distance Error (mm)')
plt.grid(True)
plt.show()