kernels

package
v0.0.0-...-ab2ebb1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: Apache-2.0 Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BoxBlur = [][]float32{
	{1.0 / 9.0, 1.0 / 9.0, 1.0 / 9.0},
	{1.0 / 9.0, 1.0 / 9.0, 1.0 / 9.0},
	{1.0 / 9.0, 1.0 / 9.0, 1.0 / 9.0},
}
View Source
var EdgeDetection = [][]float32{
	{-1, -1, -1},
	{-1, 8, -1},
	{-1, -1, -1},
}
View Source
var GaussianBlur = [][]float32{
	{1.0 / 16.0, 1.0 / 8.0, 1.0 / 16.0},
	{1.0 / 8.0, 1.0 / 4.0, 1.0 / 8.0},
	{1.0 / 16.0, 1.0 / 8.0, 1.0 / 16.0},
}
View Source
var Sharpen = [][]float32{
	{0, -1, 0},
	{-1, 5, -1},
	{0, -1, 0},
}

Functions

This section is empty.

Types

type Kernel

type Kernel [][]float32

func CreateKernelFromFloats

func CreateKernelFromFloats(first, second, third, fourth, fifth, sixth, seventh, eigth, ninth float32) Kernel

CreKernelFromFloats constructs a custom 3x3 kernel from a list of 9 floats

Jump to

Keyboard shortcuts

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