class
Resize
extends
_NoParamsGeometricTransform[Empty]Resize(height: int, width: int, interpolation: int | str | Interpolation = 1, p: float = 1.0)Resize to an exact height x width (Albumentations Resize).
Parameters
heightintTarget spatial size.
widthintTarget spatial size.
Image resampling mode (OpenCV codes accepted; masks use nearest).
pfloat= 1.0No description.
Examples
>>> import lucid, lucid.utils.transforms as T
>>> tf = T.Resize(64, 64, p=1.0)
>>> tuple(tf(T.Image(lucid.rand(3, 32, 32))).data.shape)
(3, 64, 64)