Clustering related functions. More...
#include "clustering.h"
Data Structures | |
struct | t_point |
Functions | |
void | FlagCollisionWithOcclusion (t_cluster **clusters, int object_size, t_data *data, t_config *config) |
double | dietmayer_threshold (double r, t_config *config) |
Computes dietmayer clustering threshold. | |
t_cluster ** | clustering (t_data *data, int *count, t_config *config, t_flag *flags) |
Performes clustering operation. | |
void | remove_small_clusters (t_cluster **clusters, int *size, int threshold) |
Removes clusters based on their size. | |
void | remove_border_points (t_cluster **clusters, int size, int npoints) |
Removes cluster border points. | |
void | calc_cluster_props (t_cluster **clusters, int size, t_data *data, t_config *) |
Calculates cluster properties. | |
t_object ** | clusters2objects (t_cluster **clusters, int size, t_data *data, t_config *config, t_flag *) |
Convets clusters of points into objects using recursive line fitting. | |
void | calc_object_props (t_object **objects, int size, t_config *config, t_flag *) |
Computed object propreties, such as centroid and size. | |
void | clean_objets (t_object **objects, int size) |
Frees memory associated with objects. | |
void | recursive_IEPF (t_object *object, t_data *data, int start, int end, t_config *config) |
Recursive iterative end point fit. Single step. | |
void | free_lines (t_object **objects, int size) |
Removes lines from memory. | |
void | recursive_line_fitting (t_object *object, t_cluster *cluster, t_data *data, t_config *config) |
Recursive line fitting, complete process. |
Clustering related functions.