kernel

package
v0.0.0-...-5a9b0ed Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SobelDx = &sobel{mat: [3][3]float64{{-1, 0, 1}, {-2, 0, 2}, {-1, 0, 1}}}
	SobelDy = &sobel{mat: [3][3]float64{{-1, -2, -1}, {0, 0, 0}, {1, 2, 1}}}
)

Functions

func Directional

func Directional(gx, gy *matrix.M) *directional

func FilteredDirectional

func FilteredDirectional(gx, gy *matrix.M, offset int) *filteredDirectional

func Multiplication

func Multiplication(a, b *matrix.M, offset int) *multiplication

func Sqrt

func Sqrt(a, b *matrix.M) *sqrt

func Variance

func Variance(directional *matrix.M) *variance

Types

type Base

type Base struct {
	// contains filtered or unexported fields
}

func (*Base) Convolute

func (base *Base) Convolute(in, out *matrix.M)

func (*Base) ConvoluteParallelized

func (base *Base) ConvoluteParallelized(in, out *matrix.M)

type Kernel

type Kernel interface {
	Apply(in *matrix.M, x, y int) float64
	Offset() int
}

Jump to

Keyboard shortcuts

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