Skip to content

Implementation of Image segmentation using K-Means algorithm in rust.

Notifications You must be signed in to change notification settings

PiyushSuthar/k-means-algo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K-Means Algorithm

Implementation of Image segmentation using K-Means algorithm in rust.

Code mostly taken from here

Usage

cargo run --release -- <input_image> <k>

saves the output image as <input_image>_segmented.jpg in the current directory.

Example

cargo run --release -- images/lena.png  5

Input and Output images for different values of k:

Input K = 2 K = 5 K = 10
Me K_2 K_5 K_7

About

Implementation of Image segmentation using K-Means algorithm in rust.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages