compute_center_of_mass#
- compute_center_of_mass(mask)[source]#
Compute center of mass.
- Parameters:
mask (ndarray) – (
numpy.ndarray
): A binary mask.- Returns:
x- and y- coordinates representing center of mass.
- Return type:
Compute center of mass.
mask (ndarray) – (numpy.ndarray
):
A binary mask.
x- and y- coordinates representing center of mass.