guess_spatial_dimensions
-
skimage.color.guess_spatial_dimensions(image)[source] -
Make an educated guess about whether an image has a channels dimension.
Parameters: image : ndarray
The input image.
Returns: spatial_dims : int or None
The number of spatial dimensions of
image. If ambiguous, the value isNone.Raises: ValueError
If the image array has less than two or more than four dimensions.
Please login to continue.