mergernet.core.utils.load_image#

mergernet.core.utils.load_image(path: str | Path) ndarray[source]#

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:

Image converted (if needed) to a numpy array.

Return type:

numpy.ndarray