machinevisiontoolbox.Image.mpq
- Image.mpq(p, q)
Image moments
- Parameters:
p (int) – u exponent
q (int) – v exponent
- Returns:
moment
- Type:
scalar
Computes the pq’th moment of the image:
\[m(I) = \sum_{uv} I_{uv} u^p v^q\]Example:
>>> from machinevisiontoolbox import Image >>> img = Image.Read('shark1.png') >>> img.mpq(1, 0) 341888955