optical.visualizer.utils.Resizer¶
- class optical.visualizer.utils.Resizer(expected_size: Tuple = (512, 512))[source]¶
Bases:
objectRescale the image in a sample to a given size.
- Parameters
output_size (tuple or int) – Desired output size. If tuple, output is matched to output_size. If int, smaller of image edges is matched to output_size keeping aspect ratio the same.
Methods
__init__([expected_size])