Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shingt/fuzzycmeans
Fuzzy C-Means Clustering implementation using C++ and OpenCV interface.
https://github.com/shingt/fuzzycmeans
c-plus-plus fuzzy-cmeans-clustering opencv
Last synced: 25 days ago
JSON representation
Fuzzy C-Means Clustering implementation using C++ and OpenCV interface.
- Host: GitHub
- URL: https://github.com/shingt/fuzzycmeans
- Owner: shingt
- Created: 2014-02-25T03:31:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-06T08:16:35.000Z (almost 9 years ago)
- Last Synced: 2024-10-03T16:17:05.433Z (about 1 month ago)
- Topics: c-plus-plus, fuzzy-cmeans-clustering, opencv
- Language: C++
- Size: 9.77 KB
- Stars: 14
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FuzzyCMeans
* Fuzzy C-Means clustering implementation using OpenCV.
## Usage
```cpp
cv::Mat dataset = (cv::Mat_ (4, 2)
<<
0, 0,
5, 4,
100, 150,
200, 102);static unsigned int number_clusters = 2;
float fuzziness = 1.5;
float epsilon = 0.01; // Threshold
SoftCDistType dist_type = kSoftCDistL2;
SoftCInitType init_type = kSoftCInitKmeansPP;
SoftC::Fuzzy f (dataset, number_clusters, fuzziness, epsilon, dist_type, init_type);
unsigned int num_iterations = 100;
f.clustering (num_iterations);cv::Mat centroids = f.get_centroids_ ();
std::cout << centroids << std::endl;cv::Mat memberships = f.get_membership_ ();
std::cout << memberships << std::endl;
}
```#### Copyright (c) 2014 Shinichi Goto All rights reserved.