A fast matching method performs pattern decomposition and synthesis
learning to create a pattern search recipe that is used by an invariant
pattern search and synthesis method to generate the match result. The
pattern search recipe includes template component invariant profiles,
component weights, and allowable partial pattern configurations. The
invariant matching method supports partial pattern match. This invention
decomposes a template into multiple compact shaped components and
performs search using separate rotation and scale invariant profiles for
each component. It then synthesizes the search results for the complete
template or partial template using the component search results.