darsia.resize#

resize(image, ref_image=None, shape=None, fx=None, fy=None, interpolation=None, dtype=None)[source]#

Function wrapper to Resize object.

Parameters:
imagedarsia.Image

Image to be resized.

ref_imageImage, optional

Reference image whose shape is desired.

shapetuple of int, optional

Desired shape (in matrix indexing).

fxfloat, optional

Resize factor in x-dimension.

fyfloat, optional

Resize factor in y-dimension.

interpolationstr, optional

Interpolation method, default: None, invoking the default option in cv2.resize.

dtypenp.dtype or type, optional

Conversion dtype before resizing; nothing happens if None.