vpi.Image.rescale
- Image.rescale(out: vpi.Image, *, interp: vpi.Interp = vpi.Interp.LINEAR, border: vpi.Border = vpi.Border.CLAMP, backend: vpi.Backend = vpi.Backend.DEFAULT, stream: vpi.Stream = None) vpi.Image
- Image.rescale(size: Tuple[int, int], *, interp: vpi.Interp = vpi.Interp.LINEAR, border: vpi.Border = vpi.Border.CLAMP, backend: vpi.Backend = vpi.Backend.DEFAULT, stream: vpi.Stream = None) vpi.Image
- Image.rescale(factor: float, *, interp: vpi.Interp = vpi.Interp.LINEAR, border: vpi.Border = vpi.Border.CLAMP, backend: vpi.Backend = vpi.Backend.DEFAULT, stream: vpi.Stream = None) vpi.Image
Rescales the image.
Changes the dimensions of the input image while stretching/squeezing it.
See also
Refer to the algorithm explanation for more details and usage examples.
- Parameters
out (vpi.Image) – The output image with the desired resulting dimensions.
size (Tuple[int, int]) – A tuple with the desired dimensions (width, height).
factor (float) – A float with desired scale factor to be applied on the input dimensions.
interp (vpi.Interp, optional) – Interpolation method to be used.
border (vpi.Border, optional) – The border extension used by the algorithm.
backend (vpi.Backend, optional) – The backend to be used by the algorithm.
stream (vpi.Stream, optional) – The stream to be used by the algorithm.
- Returns
The resulting Gaussian pyramid.
- Return type
Caution
Restrictions to several arguments may apply. Check the C API references of the submit function and the group concepts for more details.