moments
skimage.measure.moments(image, order=3) [source]
Calculate all raw image moments up to a certain order. The following properties can be calculated from raw image moments:
Area as: m[0, 0]. Centroid as: {m[0, 1] / m[0, 0], m[1, 0] / m[0, 0]}. Note that raw moments are neither translation, scale nor rotation invariant. Parameters:
image : 2D double or uint8 array Rasterized shape as image. order : int, optional Maximum order of moments. Default is 3. Returns:
m : (order + 1, o