Analysis#
PCA#
|
|
|
|
|
Transform contour coordinates to principal directions in the PC space. |
Hierarchical Clustering#
|
K-means clustering of contour principal components. |
|
Assign the contours with id of the closest centroid. |
|
Return contour coordinates, cluster id, and distance to centroid. |
|
Return mean contour of each cluster. |
|
Compute data structure for rendering dendrogram. |
|
Get the cluster id of contours in order of dendrogram. |
|
Return proportion of each cluster. |
|
Calculate Shannon entropy from distribution (probability) of each shape mode. |
|
Reorder cluster id according to dendrogram order. |
|
Reorder centroids according to dendrogram order. |