Image.vspan#

Image.vspan(step: int = 1) ndarray[source][source]#

Linear span of image vertically

Parameters:

step (int, optional) – step size, defaults to 1

Returns:

1D array of values [0 … height-1]

Return type:

ndarray(H)

Example:

>>> from machinevisiontoolbox import Image
>>> import numpy as np
>>> img = Image.Read('flowers1.png')
>>> with np.printoptions(threshold=10):
...     img.vspan()
array([  0,   1,   2, ..., 423, 424, 425], shape=(426,))

Note

If the image has a domain specified the vertical component of this is returned instead.

Warning

Computed using numpy.arange and for step>1 the maximum coordinate may not be returned.

Seealso:

vmax uspan