machinevisiontoolbox.Image.center_int

property Image.center_int

Coordinate of centre pixel as integer

Returns:

Coordinate (u,v) of the centre pixel

Return type:

tuple

Integer coordinate of centre pixel.

Example:

>>> from machinevisiontoolbox import Image
>>> img = Image.Zeros((50,50))
>>> img.center_int
(24, 24)
>>> img = Image.Zeros((51,51))
>>> img.center_int
(25, 25)
Note:
  • If the image has an even dimension the centre coordinate will be truncated toward zero.

  • Same as centre_int, just US spelling

Seealso:

center