Resample
Description
Resamples an image to a user-defined size. Type : polymorphic.
Documentation illustration (illustration unavailable in the archive).
Input parameters
Documentation illustration (illustration unavailable in the archive). Image Src : class, type accepted U8, I16, RGB and HSL.
Documentation illustration (illustration unavailable in the archive). 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.
Documentation illustration (illustration unavailable in the archive). Left : integer, left coordinate.
Documentation illustration (illustration unavailable in the archive). Top : integer, top coordinate.
Documentation illustration (illustration unavailable in the archive). Right : integer, right coordinate.
Documentation illustration (illustration unavailable in the archive). Bottom : integer, bottom coordinate.
Documentation illustration (illustration unavailable in the archive).
Documentation illustration (illustration unavailable in the archive). Resample Parameters : cluster,
Documentation illustration (illustration unavailable in the archive). Width (X) : integer, output image width.
Documentation illustration (illustration unavailable in the archive). Height (Y) : integer, output image height.
Documentation illustration (illustration unavailable in the archive). 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
-
Documentation illustration (illustration unavailable in the archive).
Output parameters
Documentation illustration (illustration unavailable in the archive). Image Dst : class
Examples
All these examples 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 Computer Vision library to run it).
