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.

Parameters

Scaling Range

Description

  • Greater than 1: Scale up the image;

  • Less than 1: Scale down the image;

  • Equal to 1: Keep the original size.

Parameter Range

[0.01,10], Default value: 1

Parameter Range

Values/Range: [0.01, 10.0]

Default: 1