machinevisiontoolbox.Image.centre

property Image.centre

Coordinate of centre pixel

Returns:

Coordinate (u,v) of the centre pixel

Return type:

tuple

Example:

>>> from machinevisiontoolbox import Image
>>> img = Image.Zeros((50,50))
>>> img.centre
(24.5, 24.5)
>>> img = Image.Zeros((51,51))
>>> img.centre
(25.0, 25.0)
Note:

If the image has an even dimension the centre will lie between pixels.

Seealso:

center centre_int