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.
func (*Kernel) Transposed ¶ added in v0.11.1
Transposed returns a new Kernel that has the columns as rows and vice versa
type Matrix ¶
type Matrix interface {
At(x, y int) float64
Normalized() Matrix
MaxX() int
MaxY() int
Transposed() 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.
Click to show internal directories.
Click to hide internal directories.