Allor Documentation v.2 Help

Resize Relative

Full Name

ImageTransformResizeRelative

Description

Changes images size by scale factor.

Backend

PyTorch

Input Parameters
Images

RGB/A images

Width

New width in a scale factor where 1.0 is original size

Height

New height in a scale factor where 1.0 is original size

Method
  • Lanczos — A high-quality, computationally intensive resampling filter often used in professional-grade image processing software to resize images. It’s known for preserving high-frequency details.

  • Bicubic — A commonly used method in image processing for resampling. It offers a good balance between image quality and computational efficiency. It’s widely adopted in much image processing software.

  • Hamming — While not typically used for image resizing, the Hamming algorithm is ubiquitous in computing, particularly in areas like error detection and correction. Its computation can get expensive when comparing a string against many strings.

  • Bilinear — A fast and efficient algorithm that’s good for changing the size of an image, but it can cause some undesirable softening of details. It’s faster than bicubic and Lanczos, but generally provides lower quality results.

  • Box — This method takes the target pixel of a box on the original image, and samples every pixel within the box, ensuring that all input pixels contribute to the output. While effective, this method can be difficult to optimize.

  • Nearest — Also known as nearest-neighbor, this is the fastest and simplest interpolation method, often used when speed is more important than quality. It can result in a blocky image when upscaling.

Output Parameters
Images

RGB/A images

Last modified: 04 December 2023