vampire.util.write_clusters_info¶
- vampire.util.write_clusters_info(img_set_path, filter_info, contours_df, distance)[source]¶
Writes cluster id (closest centroid) and distance to closest centroid to property csv file.
- Parameters
- img_set_pathstr
Path of folder that contains images to be analyzed.
- filter_infondarray
Unique filter(s) of image filenames to be analyzed. Empty if no filter is needed.
- contours_dfDataFrame
DataFrame of objects’ contour coordinates with cluster id.
- distancendarray
Distance of truncated principal components to the closest centroid.