Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Laplacian = [][]float32{
{-1, -1, -1, -1, -1},
{-1, -1, -1, -1, -1},
{-1, -1, 24, -1, -1},
{-1, -1, -1, -1, -1},
{-1, -1, -1, -1, -1},
}
View Source
var SepSobelXPt1 = [][]float32{
{1},
{2},
{1},
}
View Source
var SepSobelXPt2 = [][]float32{
{-1, 0, 1},
}
View Source
var SepSobelYPt1 = [][]float32{
{1, 2, 1},
}
View Source
var SepSobelYPt2 = [][]float32{
{-1},
{0},
{1},
}
View Source
var SobelX = [][]float32{
{-1, 0, 1},
{-2, 0, 2},
{-1, 0, 1},
}
View Source
var SobelY = [][]float32{
{-1, -2, -1},
{0, 0, 0},
{1, 2, 1},
}
Functions ¶
func BinaryErosionDilationStructuringElement ¶
* Generates a structuring element for use in binary morphological operations * (It's just a load of 1s in a matrix of a given size)
func NormaliseKernel ¶
* Nornalises a kernel by ensuring that all of its elements sum to 1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.