machinevisiontoolbox.Image.vspan
- Image.vspan(step=1)[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])
- Note:
If the image has a
domain
specified the vertical component of this is returned instead.
Warning
Computed using
numpy.arange
and forstep>1
the maximum coordinate may not be returned.