Documentation ¶
Overview ¶
Package convolution provides the functionality to create and apply a kernel to an image.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Kernel ¶
Kernel to be used as a convolution matrix.
func (*Kernel) Normalized ¶
Normalized returns a new Kernel with normalized values.
type Matrix ¶
Matrix interface. At returns the matrix value at position x, y. Normalized returns a new matrix with normalized values. MaxX returns the horizontal length. MaxY returns the vertical length.
type Options ¶
Options are the Convolve function parameters. Bias is added to each RGB channel after convoluting. Range is -255 to 255. Wrap sets if indices outside of image dimensions should be taken from the opposite side. CarryAlpha sets if the alpha should be taken from the source image without convoluting