A fast template matching method by adaptive template decomposition is provided. The template decomposition technique subdivides a template into a number of horizontal and/or vertical subdivisions and one-dimensional characterizations are determined for the subdivisions. The template decomposition may be adapted during learn mode operations of a general-purpose precision machine vision inspection system, with the support of corresponding user interfaces. The matching results for one or more template decomposition configurations may be evaluated by a user, or by an automatic decomposition configuration evaluation routine, to determine a configuration that provides a desirable trade-off between speed and matching position accuracy. Automatic workpiece inspection instructions may implement the configuration to repeatedly provide optimum speed versus accuracy trade-offs during run mode operations of the inspection system.
展开▼