median_center
Calculate the manhattan median 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 median center of the centroids as a numpy array with shape (2,). |