Load image from local storage to numpy array.
Supports several types of files, incluing .jpg
, .png
, .npy
,
.npz
, .fits
- Parameters:
- path: str or pathlib.Path
Path to the desired file
- Returns:
numpy.ndarray
Image converted (if needed) to a numpy array.