dimensions

imagepypelines.dimensions(img)[source]

function which returns the dimensions and data_type of a given image

Parameters:img (np.ndarray) – input image
Returns:dimensions of the form (rows, cols, bands)
Return type:tuple

Example

>>> import imagepypelines as ip
>>> rows, cols, bands = ip.dimensions( ip.lenna() )