Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k-means and image inpainting wrappers #270

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

valillon
Copy link
Contributor

@valillon valillon commented Apr 10, 2020

Wrapping k-means for unsupervised color clustering.

I don't know why the opencv's k-means implementation returns properly classified segments, but the cluster centroids look odd. In this example I had to ignored the opencv centroids and recalculating them in a different way.

Two clustering samples of color and grayscale clustering created with this commit on a RGB image and its depth-map, respectively.

meninas_kmeans_small

@valillon valillon changed the title k-means wrapper for unsupervised color clustering k-means and image inpainting wrappers May 7, 2020
@valillon
Copy link
Contributor Author

valillon commented May 7, 2020

I'm adding a second wrapper for simple image inpainting, currently configured for the Navier-Strokes method with radius 3. See an example here.

Sorry for both commits in the same pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant