Extract
Description
Extracts (reduces) an image or part of an image with adjustment of the horizontal and vertical resolution. 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.
Extract Parameters : cluster,
Scale X : float, vertical sampling step, which defines the columns to be extracted (the horizontal reduction ratio). For example, with an X equal to 3, one out of every three columns is extracted from the Image Src into the Image Dst. Each column is extracted if the default value (1) is used.
Scale Y : float, horizontal sampling step, which defines the lines to be extracted (the vertical reduction ratio). Each row is extracted if the default value (1) is used.
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).