machinevisiontoolbox.Image.centre_int

property Image.centre_int

Coordinate of centre pixel as integer

Returns:

Coordinate (u,v) of the centre pixel

Return type:

tuple

Example:

>>> from machinevisiontoolbox import Image
>>> img = Image.Zeros((50,50))
>>> img.centre_int
(24, 24)
>>> img = Image.Zeros((51,51))
>>> img.centre_int
(25, 25)
Note:

If the image has an even dimension the centre coordinate will be truncated toward zero.

Seealso:

centre