delta.data.readreshape

delta.data.readreshape(filename: str, target_size: Tuple[int, int] = (256, 32), binarize: bool = False, order: int = 1, rangescale: bool = True, crop: bool = False) ndarray[Any, dtype[Any]]

Read image from disk and format it

Parameters
filenamestring

Path to file. Only PNG, JPG or single-page TIFF files accepted

target_sizetupe of int or None, optional

Size to reshape the image. The default is (256,32).

binarizebool, optional

Use the binarizerange() function on the image. The default is False.

orderint, optional

interpolation order (see skimage.transform.warp doc). 0 is nearest neighbor 1 is bilinear The default is 1.

rangescalebool, optional

Scale array image values to 0-1 if True. The default is True.

modestr, optional

Resize the

Raises
——
ValueError

Raised if image file is not a PNG, JPEG, or TIFF file.

Returns
inumpy 2d array of floats

Loaded array.