Io
io
¶
Functions¶
read_image_or_numpy(filename)
¶
Read in a file that's either an image or numpy array
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename |
PATH_TYPE
|
Filename to be read |
required |
Raises:
Type | Description |
---|---|
ValueError
|
If file cannot be read |
Returns:
Type | Description |
---|---|
ndarray
|
np.ndarray: Image, in format present on disk |