Welcome to our Support Center

Resample

Description

Resamples an image to a user-defined size. Type : polymorphic.

 

Input parameters

 

Image Src : class, type accepted U8, I16, RGB and HSL.

Optional Rectangle : cluster, defines a four-element cluster that contains the left, top, right, and bottom coordinates of the region to process. The VI applies the operation to the entire image if the four-element are equal to 0.

Left : integer, left coordinate.
Top : integer,
top coordinate.
Right : integer,
right coordinate.
Bottom : integer,
bottom coordinate.

Resample Parameters : cluster,

Width (X) : integer, output image width.
Height (Y) : integer,
output image height.
Interpolation : integer,
specifies the interpolation method used to resample the image.

      • INTER_NEAREST : nearest neighbor interpolation
      • INTER_LINEAR : bilinear interpolation
      • INTER_CUBIC : bicubic interpolation
      • INTER_AREA : resampling using pixel area relation. It may be a preferred method for image decimation, as it gives moire’-free results. But when the image is zoomed, it is similar to the INTER_NEAREST method
      • INTER_LANCZOS4 : Lanczos interpolation over 8×8 neighborhood
      • INTER_LINEAR_EXACT : bit exact bilinear interpolation
      • INTER_NEAREST_EXACT : bit exact nearest neighbor interpolation

 

Output parameters

 

Image Dst : class

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install TIGR library to run it).

Table of Contents