quantizer

package
v0.0.0-...-5c6df85 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Quant

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

A workspace with members that can be accessed by methods.

func (*Quant) Median

func (q *Quant) Median(c *cluster) uint32

func (*Quant) Paletted

func (qz *Quant) Paletted() image.PalettedImage

func (Quant) Quantize

func (q Quant) Quantize(img image.Image, nq int) image.Image

Image quantization method. Returns a paletted image. We need to use type assertion to match the interface returning type.

func (*Quant) Split

func (q *Quant) Split(s, c *cluster, m uint32)

type Quantizer

type Quantizer interface {
	Quantize(image.Image, draw.Image, int, bool, bool) image.Image
}

Interface which implements the Quantize method.

Jump to

Keyboard shortcuts

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