Image Scaling
Description
This operator is used to scale input images uniformly and can process multiple images simultaneously. By setting the scaling ratio, images can be scaled up or down by a specified factor while maintaining the aspect ratio.
Overview
Scales the image proportionally according to a given ratio and records dimensions before and after scaling, facilitating quick adaptation for network input or visualization needs.
Scenarios
-
Preprocessing image size before detection or other processing to meet model size requirements.
-
Reducing image size to improve calculation speed when image resolution is too large.
Inputs and Outputs
Inputs |
Image: Three-channel color image or single-channel image; supports multiple image inputs. |
Outputs |
Scaled image: The image after scaling processing. |