mask

package
v0.0.0-...-a2f54b6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2014 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//Gaussian
	GaussianMask5x5 = [][]float32{
		{2, 4, 5, 4, 2},
		{4, 9, 12, 9, 4},
		{5, 12, 15, 12, 5},
		{4, 9, 12, 9, 4},
		{2, 4, 5, 4, 2},
	}
	GaussianMask3x3 = [][]float32{
		{1, 2, 1},
		{2, 4, 2},
		{1, 2, 1},
	}
	//Sobel 3x3,5x5
	SobelMask3x3X = [][]float32{
		{-1, 0, 1},
		{-2, 0, 2},
		{-1, 0, 1},
	}
	SobelMask3x3Y = [][]float32{
		{-1, -2, -1},
		{0, 0, 0},
		{1, 2, 1},
	}
	SobelMask5x5X = [][]float32{
		{1, 2, 0, -2, -1},
		{4, 8, 0, -8, -4},
		{6, 12, 0, -12, -6},
		{4, 8, 0, -2, -4},
		{1, 2, 0, -2, -1},
	}
	SobelMask5x5Y = [][]float32{
		{-1, -4, -6, -4, -1},
		{-2, -8, -12, -8, -2},
		{0, 0, 0, 0, 0, 0},
		{2, 8, 12, 8, 2},
		{1, 4, 6, 4, 1},
	}
)

Functions

func GenBoxBlurMask

func GenBoxBlurMask(size int) [][]float32

Types

This section is empty.

Jump to

Keyboard shortcuts

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