image

package
v0.0.0-...-705611b Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2016 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LabImage

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

A LabImage stores its pixels as values in the Lab colorspace which is a colorspace which produces human-centric distance metrics

func NewLabImage

func NewLabImage(bounds image.Rectangle) *LabImage

Answers a new LabImage which is optimized for distance calculations.

func (*LabImage) At

func (i *LabImage) At(x, y int) color.Color

Answer the Lab color of the image at the specified offsets.

func (*LabImage) Bounds

func (i *LabImage) Bounds() image.Rectangle

Answer the bounds of the image.

func (*LabImage) ColorModel

func (i *LabImage) ColorModel() color.Model

Answer the Lab color model.

func (*LabImage) Set

func (i *LabImage) Set(x, y int, c color.Color)

Set the Lab color of the image at the specified offets.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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