sampler

package
v0.0.0-...-9e154f2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2018 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CombinedSampler

type CombinedSampler struct {
	Samplers []ImageSampler

	MaxSamples       int
	RemainingSamples int
	// contains filtered or unexported fields
}

func NewCombinedSampler

func NewCombinedSampler(img image.Image, samples int, samplers ...ImageSampler) *CombinedSampler

func (CombinedSampler) HasMore

func (cs CombinedSampler) HasMore() bool

func (*CombinedSampler) Next

func (cs *CombinedSampler) Next() (x, y int)

func (*CombinedSampler) Reset

func (cs *CombinedSampler) Reset()

type EdgeDetector

type EdgeDetector struct {
	Reference image.Image

	Edges int

	Treshold uint32
	// contains filtered or unexported fields
}

func NewEdgeDetector

func NewEdgeDetector(img image.Image, samples int) *EdgeDetector

func (EdgeDetector) HasMore

func (ed EdgeDetector) HasMore() bool

func (*EdgeDetector) Next

func (ed *EdgeDetector) Next() (x, y int)

func (EdgeDetector) NumberOfEdges

func (ed EdgeDetector) NumberOfEdges() int

func (*EdgeDetector) Reset

func (ed *EdgeDetector) Reset()

type GaussSampler

type GaussSampler struct {
	Reference        image.Image
	MaxSamples       int
	RemainingSamples int
	// contains filtered or unexported fields
}

func NewGaussSampler

func NewGaussSampler(img image.Image, samples int) *GaussSampler

func (GaussSampler) HasMore

func (rs GaussSampler) HasMore() bool

func (*GaussSampler) Next

func (rs *GaussSampler) Next() (x, y int)

func (*GaussSampler) Reset

func (rs *GaussSampler) Reset()

type ImageSampler

type ImageSampler interface {
	HasMore() bool
	Next() (x, y int)
	Reset()
}

type ImageSamplerCache

type ImageSamplerCache struct {
	Sampler *ImageSampler // @todo we will not need this later
	// contains filtered or unexported fields
}

func NewSamplerCache

func NewSamplerCache(sampler ImageSampler) *ImageSamplerCache

func (*ImageSamplerCache) Compress

func (isc *ImageSamplerCache) Compress()

func (*ImageSamplerCache) HasMore

func (isc *ImageSamplerCache) HasMore() bool

func (*ImageSamplerCache) Next

func (isc *ImageSamplerCache) Next() (x, y int)

func (*ImageSamplerCache) Reset

func (isc *ImageSamplerCache) Reset()

type UniformSampler

type UniformSampler struct {
	Reference image.Image
	XSamples  int
	YSamples  int
	// contains filtered or unexported fields
}

func NewUniformSampler

func NewUniformSampler(img image.Image, samples int) *UniformSampler

func (UniformSampler) HasMore

func (us UniformSampler) HasMore() bool

func (*UniformSampler) Next

func (us *UniformSampler) Next() (x, y int)

func (*UniformSampler) Reset

func (us *UniformSampler) Reset()

Jump to

Keyboard shortcuts

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