mean_center
Calculate the mean center of a GeoDataFrame containing nuclei.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
xy
|
ndarray
|
A numpy array of shape (n, 2) containing the x and y coordinates. (centroids of the nuclei). |
required |
Returns:
Type | Description |
---|---|
ndarray
|
np.ndarray: The mean center of the centroids as a numpy array with shape (2,). |