image

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: Unlicense Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsImage

func IsImage(filename string) bool

Types

type Histogram

type Histogram struct {
	Red   [256]uint64
	Green [256]uint64
	Blue  [256]uint64
	// contains filtered or unexported fields
}

type Image

type Image struct {
	Filename string
	Hist     *Histogram
}

func Load

func Load(filename string) (*Image, error)

func (*Image) Compare

func (i *Image) Compare(b []byte) (result float64, comparedElement string, err error)

Implements the Comparer interface

func (*Image) MarshalBinary

func (img *Image) MarshalBinary() ([]byte, error)

Implements the BinaryMarshaler interface

func (Image) String

func (i Image) String() string

Implements the Stringer interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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