🟠 Image Scaling

Function Description

This operator is used to perform uniform scaling operations on input images, capable of processing multiple images simultaneously. By setting scaling ratios, images can be enlarged or reduced by specified factors while maintaining image aspect ratios.

Usage Scenarios

  • Preprocess image sizes before detection or other processing to make input images meet model size requirements.

  • When image resolution is too high, reducing image size can improve computation speed

Input Output

Input

Image: Three-channel color images or single-channel images, supporting multiple image inputs.

Output

Scaled image: Images after scaling processing.

Parameter Description

Scaling Range

Parameter Description

Controls the scaling factor for image dimensions.

Parameter Adjustment

  • Greater than 1: Enlarge image;

  • Less than 1: Reduce image;

  • Equal to 1: Maintain original size.

Parameter Range

[0.01,10], Default: 1