darsia.resize#
- resize(image, ref_image=None, shape=None, fx=None, fy=None, interpolation=None, dtype=None)[source]#
Function wrapper to Resize object.
- Parameters:
- image
darsia.Image Image to be resized.
- ref_image
Image,optional Reference image whose shape is desired.
- shape
tupleofint,optional Desired shape (in matrix indexing).
- fx
float,optional Resize factor in x-dimension.
- fy
float,optional Resize factor in y-dimension.
- interpolation
str,optional Interpolation method, default: None, invoking the default option in cv2.resize.
- dtype
np.dtypeortype,optional Conversion dtype before resizing; nothing happens if None.
- image