Aircraft Detection 1.0
Loading...
Searching...
No Matches
kmeans.h
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <opencv2/core/mat.hpp>
5
6
7cv::Mat kmeansBySize(const std::vector<cv::Mat>& extracted_templates, int K);
8
9cv::Mat kmeansByIntensity(const std::vector<cv::Mat>& extracted_templates, int K_clusters);
10
11void saveClusteredImages(const std::vector<cv::Mat>& images, const std::vector<std::string>& image_paths, const cv::Mat& labels, const std::vector<std::filesystem::path>& cluster_paths);
void saveClusteredImages(const std::vector< cv::Mat > &images, const std::vector< std::string > &image_paths, const cv::Mat &labels, const std::vector< std::filesystem::path > &cluster_paths)
Saves images into directories based on their cluster labels.
Definition kmeans.cpp:116
cv::Mat kmeansByIntensity(const std::vector< cv::Mat > &extracted_templates, int K_clusters)
Performs K-Means clustering on a set of templates based on their mean intensity.
Definition kmeans.cpp:68
cv::Mat kmeansBySize(const std::vector< cv::Mat > &extracted_templates, int K)
Performs K-Means clustering on a set of templates based on their dimensions.
Definition kmeans.cpp:21