mmcv.image.imresize_like¶
- mmcv.image.imresize_like(img: numpy.ndarray, dst_img: numpy.ndarray, return_scale: bool = False, interpolation: str = 'bilinear', backend: Optional[str] = None) → Union[Tuple[numpy.ndarray, float, float], numpy.ndarray][source]¶
Resize image to the same size of a given image.
- Parameters
- Returns
(resized_img, w_scale, h_scale) or resized_img.
- Return type
tuple or ndarray