| Aircraft Detection 1.0
    | 
| Functions | |
| 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. | |
| cv::Mat | kmeansByIntensity (const std::vector< cv::Mat > &clustered_templates_by_size, int K_clusters) | 
| Performs K-Means clustering on a set of templates based on their mean intensity. | |
| 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. | |
| cv::Mat kmeansByIntensity | ( | const std::vector< cv::Mat > & | clustered_templates_by_size, | 
| int | K_clusters ) | 
Performs K-Means clustering on a set of templates based on their mean intensity.
This function takes a vector of templates that have been clustered by size and performs K-Means clustering based on their mean intensity. The result is a matrix of labels indicating the cluster assignment for each template.
| [in] | clustered_templates_by_size | A vector of cv::Matobjects representing the templates that have been previously clustered by size. | 
| [in] | K_clusters | The number of intensity-based clusters to form. | 
cv::Mat containing the cluster labels for each template based on intensity.| 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.
This function takes a vector of extracted templates and performs K-Means clustering based on their width and height. The result is a matrix of labels indicating the cluster assignment for each template.
| [in] | extracted_templates | A vector of cv::Matobjects representing the extracted templates. | 
| [in] | K | The number of clusters to form. | 
cv::Mat containing the cluster labels for each template.| 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.
This function takes a vector of images, their corresponding file paths, cluster labels, and destination directories for each cluster. It saves each image into the appropriate directory based on its cluster label.
| [in] | images | A vector of cv::Matobjects representing the images to be saved. | 
| [in] | image_paths | A vector of strings containing the original file paths of the images. | 
| [in] | labels | A cv::Matcontaining the cluster labels for each image. | 
| [in] | cluster_paths | A vector of std::filesystem::pathobjects representing the destination directories for each cluster. |