transform.Resize¶
- class transform.Resize(width, height, resize_target=True, keep_aspect_ratio=False, ensure_multiple_of=1, resize_method='lower_bound', image_interpolation_method=cv2.INTER_AREA)¶
Bases:
objectResize sample to given size (width, height).
- constrain_to_multiple_of(x, min_val=0, max_val=None)¶
- get_size(width, height)¶
- __call__(sample)¶