pixelmatch

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

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 5 Imported by: 0

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