exact

package
v0.0.0-...-9dab196 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

Matcher is an image matching algorithm.

It implements exact matching. That is, two images match if they are are the same size, and if the pixel found at each (x, y) coordinate is identical on both images.

func (*Matcher) LastDifferentPixelFound

func (m *Matcher) LastDifferentPixelFound() *image.Point

LastDifferentPixelFound returns the last different pixel found, or nil if the images match.

func (*Matcher) Match

func (m *Matcher) Match(expected, actual image.Image) bool

Match implements the imgmatching.Matcher interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL