Fast kmeans Algorithm Code
This code uses MATLAB's Internal Functions and Memory Preallocations to apply a Fast Implementation of kmeans algorithm. This is a efficient code for clustering a gray or Color image or it can be used for clustering a Multidimensional Array.
Comparison.
1. Faster than MATLAB's internal kmeans function.
2. Consistant Output than internal kmeans.
3. 100% convergence.
4. Very efficient for color image segmentation in L*a*b* color space.
5. Very easy to understand and can be easily modified according to requirement.
Hope you will like it. i am waiting for your reviews and comments.
Cite As
ankit dixit (2024). Fast kmeans Algorithm Code (https://www.mathworks.com/matlabcentral/fileexchange/44598-fast-kmeans-algorithm-code), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation > Color Segmentation >
Tags
Acknowledgements
Inspired: Sparsified K-Means
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.7.0.0 | Change in output mean |
||
1.6.0.0 | These code supports color image as input and returns a segmented labeled image as output. |
||
1.5.0.0 | Minor Changes. |
||
1.2.0.0 | Now return Clustered Image at Output!!!...I will put kmeans for color clustering in next update :-) |
||
1.0.0.0 |