Bilinearinterpolationenabled – Adept AdeptSight Reference Guide User Manual

Page 68

Advertising
background image

BilinearInterpolationEnabled

VPARAMETER

120

Specifies if bilinear interpolation is used to sample the input image. By default, bilinear interpolation is

enabled because it ensures subpixel accuracy.

Syntax

Micro V+

VPARAMETER (sequence_id, tool_id, 120, index_id, object_id) = value

value = VPARAMETER (sequence_id, tool_id, 120, index_id, object_id)

V+

VPARAMETER (sequence_id, tool_id, 120, index_id, object_id) $ip = value

value = VPARAMETER ($ip, sequence_id, tool_id, 120, index_id, object_id)

Remarks

Bilinear interpolation is crucial for obtaining accurate results with inspection tools. When a tool is

positioned in frame-based mode, the tool region of interest is rarely aligned with the pixel grid, which

results in jagged edges on edges of objects. The bilinear interpolation function smooths out the

jaggedness within the sampled image by attributing to each pixel a value interpolated from values of

neighboring pixels, which provides a more true-to-life representation of contours, as illustrated in the

following figure.

Uninterpolated sampling may provide a small increase in speed but will provide less accurate results.

Figure: Effect of Bilinear Interpolation

Type

BilinearInterpolationEnabled

AdeptSight Reference Guide, v3.2.x, Updated: 5/8/2012

Page 68

Advertising