blob: 1a15a49fa2d5dbbf7603758e8eb981178966787a [file] [log] [blame]
package imgmatching
import (
// Matcher represents a generic image matching algorithm.
type Matcher interface {
// Match returns true if the algorithm considers the two images to be equivalent.
Match(expected, actual image.Image) bool
// Make sure the matchers implement the imgmatching.Matcher interface.
// Note: this is done here instead of in their respective packages to prevent import cycles.
var _ Matcher = (*fuzzy.Matcher)(nil)
var _ Matcher = (*sobel.Matcher)(nil)