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 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()
Click to show internal directories.
Click to hide internal directories.