Skip to content
Snippets Groups Projects
Commit 88d091e1 authored by Marc Feger's avatar Marc Feger
Browse files

Remove white edges to keep image size

parent 006a02cd
No related branches found
No related tags found
Loading
A2/images/result.jpeg

363 KiB | W: | H:

A2/images/result.jpeg

336 KiB | W: | H:

A2/images/result.jpeg
A2/images/result.jpeg
A2/images/result.jpeg
A2/images/result.jpeg
  • 2-up
  • Swipe
  • Onion skin
......@@ -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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment