Arbitrary Shape Pattern Matching via FFT Convolution

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing pattern matching techniques face high computational costs for arbitrary shape pattern searches and are limited by noise when restricting patterns to rectangular shapes, failing to efficiently match patterns of arbitrary shapes.

Innovation Solution

A computer-implemented method using normalized cross-correlation evaluation through convolution of mask and search images, employing Fast Fourier Transform (FFT) and inverse FFT to reduce calculations and allow for arbitrary shape pattern matching, with normalization to zero mean and unit variance for accurate results.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If pattern matching is performed for arbitrary shape patterns, then pattern matching capability is improved, but computational cost increases to n4 calculations

Engineering Contradiction:
Improvepattern shape flexibilityVSAvoidcomputational efficiency
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent replaces direct spatial convolution (mechanical approach) with frequency domain convolution using FFT. By transforming images to frequency domain, performing multiplication, and transforming back, the computational complexity is reduced from O(n^4) to O(n^2 log n), resolving the contradiction between arbitrary shape support and computational efficiency.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The patent changes the domain parameter from spatial domain to frequency domain. This transformation allows the same pattern matching operation to be performed with different computational characteristics, achieving both arbitrary shape support and improved efficiency through the FFT-based approach.

Inventive Principle:
Principle #35Parameter changes

2Productivity

If pattern matching is restricted to rectangular shapes, then computational cost is reduced to n2 log n, but pattern matching accuracy deteriorates due to unwanted noise

Engineering Contradiction:
Improvecomputational efficiencyVSAvoidpattern matching accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent segments the rectangular search space by applying a binary mask that identifies only the relevant arbitrary-shaped pattern regions. This segmentation allows the efficient rectangular search algorithm to be applied only to meaningful regions, eliminating noise from irrelevant areas while maintaining computational efficiency.

Inventive Principle:
Principle #1Segmentation

3Productivity

If arbitrary patterns are inscribed in rectangles, then computational efficiency is improved, but measurement precision deteriorates due to introduced noise

Engineering Contradiction:
Improvecomputational efficiencyVSAvoidpattern matching accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent introduces a binary mask as an intermediary between the rectangular search framework and the arbitrary pattern. The mask acts as a filter that preserves the computational efficiency of rectangular search while eliminating the noise problem by suppressing responses in regions outside the arbitrary pattern boundaries.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS8401294B1Pattern matching using convolution of mask image and search image
Publication Date: 2013.03.19 LUCASFILM ENTERTAINMENT COMPANY LTD
  • US8401294B1 patent drawing
  • US8401294B1 patent drawing
  • US8401294B1 patent drawing

AI summary

Among other disclosed subject matter, a computer-implemented method for pattern matching includes receiving a pattern image, a mask image and a search image, the mask image having an arbitrary shape and identifying a portion of the pattern image. The method includes evaluating a normalized cross-correlation equation based on the pattern image, the mask image and the search image, including at least a convolution of the mask image and the search image. The method includes outputting a result of evaluating the normalized cross-correlation equation, the result indicating whether the search image matches the portion of the pattern image.