load_image#

ripplemapper.io.load_image(file: str | PosixPath | WindowsPath) ndarray[source]#

Load an image file based on file extension.

Parameters:

file (str | PosixPath | WindowsPath) – File path to load.

Returns:

Loaded image data.

Return type:

np.ndarray

Raises:

ValueError – If the file type is unsupported.