Outline of the algorithm to compute Collagen Alignment Index (CAI).

After segmenting the nuclei, cell-graph are built capturing the spatial distribution. Voronoi diagrams are built and the gradient vectors in each Voronoi compartment are calculated. A distribution of the angles between the cell-graph edges and the gradient vectors is calculated to find the CAI metric.