diff --git a/A2/images/result.jpeg b/A2/images/result.jpeg index 4cddf1a3f4f87116673cf1803b0ab472573fafa0..67fb23912e1d0925557aead9ba9c26d6a8c1324b 100644 Binary files a/A2/images/result.jpeg and b/A2/images/result.jpeg differ diff --git a/A2/orb.py b/A2/orb.py index ec42ed936b392a0b7f91c6570ed10bf0ad8f04fc..3be8dc782983efb1f8e6ba65ffca5d6b2659e9c4 100644 --- a/A2/orb.py +++ b/A2/orb.py @@ -86,9 +86,9 @@ class ORB(object): X = np.array([list(x) for x in key_points]) centers, labels = self.find_clusters(X, self.k) - plt.scatter(X[:, 0], X[:, 1], marker='.', s=1, c=labels, cmap='viridis') + plt.scatter(X[:, 0], X[:, 1], marker='.', s=10, c=labels, cmap='viridis') plt.scatter(centers[:, 0], centers[:, 1], marker='+', color='red') plt.axis('off') - plt.savefig(self.edit_path, dpi=300, bbox_inches='tight') + plt.savefig(self.edit_path, dpi=300, bbox_inches='tight', pad_inches=0) plt.close()