Image.centre#
- property Image.centre: tuple[float, float][source]#
Coordinate of centre pixel
- Returns:
Coordinate (u,v) of the centre pixel
- Return type:
tuple
Example:
>>> from machinevisiontoolbox import Image >>> img = Image.Zeros(size=(50,50)) >>> img.centre (25.0, 25.0) >>> img = Image.Zeros(size=(51,51)) >>> img.centre (25.5, 25.5)
Note
If the image has an even dimension the centre will lie between pixels.
- Seealso: