🖥
🖥
🖥
🖥
AugeLab Studio Manual
English
Ask or search…
K
Comment on page

Image Resize

Image Resize Node Documentation

The Image Resize node in AugeLab Studio is used to resize an input image to a specified width and height.

Node Overview

The Image Resize node allows you to resize an image by specifying the desired width and height. It takes an input image and resizes it to the specified dimensions using the chosen interpolation method.

Node Properties

  • Node Title: Image Resize
  • Node ID: OP_NODE_CHANGE_DIMENSION

Inputs

The Image Resize node has the following input sockets:
  1. 1.
    Input Image: The input image to be resized.
  2. 2.
    Width: The desired width of the resized image. If left unconnected, the width will be set to the original width of the input image.
  3. 3.
    Height: The desired height of the resized image. If left unconnected, the height will be set to the original height of the input image.

Outputs

The Image Resize node has the following output socket:
  1. 1.
    Output Image: The resized image.

Node Controls

The Image Resize node has the following control:
  • Interpolation Method: A dropdown list where you can select the interpolation method to be used for resizing the image. The available options are:
    • INTER_NEAREST: Nearest-neighbor interpolation.
    • INTER_LINEAR: Bilinear interpolation.
    • INTER_AREA: Resampling using pixel area relation.
    • INTER_CUBIC: Bicubic interpolation.
    • INTER_LANCZOS4: Lanczos interpolation over 8x8 neighborhood.

Usage

  1. 1.
    Drag and drop the Image Resize node from the node library onto the canvas in AugeLab Studio.
  2. 2.
    Connect the input image to the Input Image input socket of the Image Resize node.
  3. 3.
    (Optional) Connect an integer value to the Width input socket to specify the desired width of the resized image. If left unconnected, the width will be set to the original width of the input image.
  4. 4.
    (Optional) Connect an integer value to the Height input socket to specify the desired height of the resized image. If left unconnected, the height will be set to the original height of the input image.
  5. 5.
    Choose the desired interpolation method from the Interpolation Method dropdown list.
  6. 6.
    Run the pipeline.
  7. 7.
    The Image Resize node will resize the input image to the specified width and height using the chosen interpolation method.
  8. 8.
    The resized image will be output through the Output Image output socket.
  9. 9.
    Use the resized image for further analysis or display it in the console.

Notes

  • The Image Resize node resizes the input image to the specified width and height using the selected interpolation method.
  • The width and height can be set to different values to achieve non-uniform resizing.
  • If the Width or Height input sockets are left unconnected, the corresponding dimension of the output image will be set to the original dimension of the input image, preserving the aspect ratio.
  • The interpolation method determines how the pixel values of the resized image are calculated. Different methods have different trade-offs in terms of computational efficiency and image quality.
  • The node uses the cv2.resize() function from the OpenCV library for image resizing.
  • The node supports images of any size and data type.
That concludes the documentation for the Image Resize node in AugeLab Studio. This node provides a flexible way to resize images to specific dimensions using various interpolation methods, allowing for precise control over image size and quality.