Documentation ¶
Index ¶
- func ColorAccumulator(acc, add, sub drawgl.FloatColor, coeff drawgl.ColorValue, ...) drawgl.FloatColor
- func NewBoxBlurLinker(opts BoxBlurOptions) (graph.Linker, error)
- func NewConvolutionLinker(opts ConvolutionOptions) (graph.Linker, error)
- func NormalizeData(data []float32) (normalized []drawgl.ColorValue, offset drawgl.ColorValue)
- type BoxBlur
- type BoxBlurOptions
- type Convolution
- type ConvolutionOptions
- type HVKernel
- type Kernel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorAccumulator ¶
func ColorAccumulator(acc, add, sub drawgl.FloatColor, coeff drawgl.ColorValue, channel drawgl.Channel) drawgl.FloatColor
func NewBoxBlurLinker ¶
func NewBoxBlurLinker(opts BoxBlurOptions) (graph.Linker, error)
func NewConvolutionLinker ¶
func NewConvolutionLinker(opts ConvolutionOptions) (graph.Linker, error)
func NormalizeData ¶
func NormalizeData(data []float32) (normalized []drawgl.ColorValue, offset drawgl.ColorValue)
Types ¶
type BoxBlurOptions ¶
type Convolution ¶
type ConvolutionOptions ¶
type HVKernel ¶
type HVKernel interface { HWeights() []drawgl.ColorValue VWeights() []drawgl.ColorValue HNormalized() ([]drawgl.ColorValue, drawgl.ColorValue) VNormalized() ([]drawgl.ColorValue, drawgl.ColorValue) }
func NewHVKernel ¶
type Kernel ¶
type Kernel interface { Weights() []drawgl.ColorValue Normalized() ([]drawgl.ColorValue, drawgl.ColorValue) }
Click to show internal directories.
Click to hide internal directories.