imagediff

package
v0.0.0-...-a6f379a Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(b1, b2 []*Bucket) (int64, error)

the lower the diff, the more similar the images are

func DiffBucket

func DiffBucket(b1, b2 *Bucket) int64

func DiffImages

func DiffImages(img1, img2 *image.RGBA) (int64, error)

Types

type Bucket

type Bucket struct {
	R, G, B    int64
	PixelCount int64
}

func NewBucket

func NewBucket() *Bucket

func (*Bucket) Add

func (bucket *Bucket) Add(rgba color.RGBA)

func (*Bucket) RGB

func (bucket *Bucket) RGB() int64

func (*Bucket) RGBA

func (bucket *Bucket) RGBA() color.RGBA

func (*Bucket) Reset

func (bucket *Bucket) Reset()

Jump to

Keyboard shortcuts

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