LearnPatternAdvancedShiftOptions

NI Vision for LabWindows/CVI Function

LearnPatternAdvancedShiftOptions

Describes how the algorithm learns during shift-invariant matching.

Elements

Name

Type

Description

initialStepSize int The largest number of image pixels to shift the sample across the inspection image during the initial phase of shift-invariant matching. The default is 7. The algorithm may reduce the value of initialStepSize based on initialSampleSize and the template image. If the step size is not an odd integer, the VI coerces it to the next smaller integer.
initialSampleSize int Specifies the number of template pixels that you want to include in a sample for the initial phase of shift-invariant matching. The default is 0, which allows the algorithm to compute initialSampleSize. For optimal speed, the algorithm coerces sizes that are less than 240 to an integer multiple of 12 and coerces sizes greater than 240 to an integer multiple of 60.
initialSampleSizeFactor double Specifies the size of the sample for the initial phase of shift-invariant matching as a percent of the template size, in pixels. The default is 0, which causes the algorithm to use initialSampleSize. If you provide values for both initialSampleSizeFactor and initialSampleSize, the algorithm uses initialSampleSize. For optimal speed, the algorithm coerces sizes that are less that 240 to an integer multiple of 12 and coerces sizes greater than 240 to an integer multiple of 60.
finalSampleSize int Specifies the number of template pixels you want to add to initialSampleSize for the final phase of shift-invariant matching. These additional points include edge points. The default is 0, which allows the algorithm to compute finalSampleSize. For optimal speed, the algorithm coerces sizes that are less than 240 to an integer multiple of 12 and coerces sizes greater than 240 to an integer multiple of 60.
finalSampleSizeFactor double Specifies the size of the sample for the final phase of shift-invariant matching as a percent of the edge points in the template, in pixels. The default is 0, which causes the algorithm to use finalSampleSize. If you provide values for both finalSampleSizeFactor and finalSampleSize, the algorithm uses finalSampleSize. For optimal speed, the algorithm coerces sizes that are less than 240 to an integer multiple of 12 and coerces sizes greater than 240 to an integer multiple of 60.
subpixelSampleSize int Specifies the number of template pixels that you want to include in a sample for the subpixel phase of shift-invariant matching. The default is 0, which allows the algorithm to compute subpixelSampleSize. For optimal speed, the algorithm coerces sizes that are less than 240 to an integer multiple of 12 and coerces sizes greater than 240 to an integer multiple of 60.
subpixelSampleSizeFactor double Specifies the size of the sample for the subpixel phase of shift-invariant matching as a percent of the template size, in pixels. The default is 0, which causes the algorithm to use subpixelSampleSize. For optimal speed, the VI coerces sizes that are less than 240 to an integer multiple of 12 and coerces sizes greater than 240 to an integer multiple of 60.