pixelmatch

package module
v0.0.0-...-fa304d1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 5 Imported by: 1

README

pixelmatch

mapbox/pixelmatch ports for go.

Installation

library

go get github.com/orisano/pixelmatch

cli

go get github.com/orisano/pixelmatch/cmd/pixelmatch

Author

Nao Yonashiro (@orisano)

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrImageSizesNotMatch = errors.New("image sizes do not match")

Functions

func EnableDiffMask

func EnableDiffMask(o *MatchOptions)

func IncludeAntiAlias

func IncludeAntiAlias(o *MatchOptions)

func MatchPixel

func MatchPixel(a, b image.Image, opts ...MatchOption) (int, error)

Types

type MatchOption

type MatchOption func(*MatchOptions)

func Alpha

func Alpha(alpha float64) MatchOption

func AntiAliasedColor

func AntiAliasedColor(c color.Color) MatchOption

func DiffColor

func DiffColor(c color.Color) MatchOption

func DiffColorAlt

func DiffColorAlt(c color.Color) MatchOption

func Threshold

func Threshold(threshold float64) MatchOption

func WriteTo

func WriteTo(img *image.Image) MatchOption

type MatchOptions

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

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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