centroid

imagepypelines.centroid(img)[source]

finds the centroid of the given image img

Parameters:img (np.ndarray) – input img to find the centroid of
Returns:centroid of the input image (height,width)
Return type:tuple

Example

>>> import imagepypelines as ip
>>> lenna_centroid = ip.centroid( ip.lenna() )