Documentation ¶
Index ¶
- Constants
- func FGEDCustomOperator(img Image, operator [][]int) (err error)
- func FGEDCustomOperators(img Image, GxOp, GyOp [][]int, do int) (err error)
- func FGEDLaplacian4(img Image) (err error)
- func FGEDLaplacian8(img Image) (err error)
- func FGEDPrevitt(img Image, do int) (err error)
- func FGEDRoberts(img Image, do int) (err error)
- func FGEDScharr(img Image, do int) (err error)
- func FGEDSobel(img Image, do int) (err error)
- func FGPCIterative(img Image) (threshold int)
- func FGPCOtsuThresholding2(img Image) (threshold int)
- func FGPCThreshold(img Image, thresholds []int, colors []Pixel) (err error)
- func GSAveraging(img Image)
- func GSDecomposition(img Image, do int) (err error)
- func GSDesaturation(img Image)
- func GSLuma(img Image)
- func GSSingleColor(img Image, color int) (err error)
- func SaveImage(path, name string, img Image) (err error)
- type Image
- type Pixel
Constants ¶
const ( // Gx - Brightness = |Gx|. GX = iota // Gy - Brightness = |Gy|. GY = iota // GxGy - Brightness = |Gx| + |Gy| GXGY = iota // SqrtGxGy - Brightness = sqrt(Gx^2 + Gy^2) SQRTGXGY = iota )
do-parameters for FGEDSobel.
const ( // DOMIN - Brightness = Min(Red, Green, Blue). DOMIN = iota // DOMAX - Brightness = Max(Red, Green, Blue). DOMAX = iota )
do-parameters for GSDecomposition
const ( // RED - Brightness = Red RED = iota // GREEN - Brightness = Green GREEN = iota // BLUE - Brightness = Blue BLUE = iota )
color-parameters for GSSingleColor
Variables ¶
This section is empty.
Functions ¶
func FGEDCustomOperator ¶
FGEDCustomOperator uses programmers operator for finding edges.
func FGEDCustomOperators ¶
FGEDCustomOperators uses programmers operators for finding Gx and Gy.
func FGEDLaplacian4 ¶
FGEDLaplacian4 uses 4-connected Laplacian for finding edges.
func FGEDLaplacian8 ¶
FGEDLaplacian8 uses 8-connected Laplacian for finding edges.
func FGEDPrevitt ¶
FGEDPrevitt uses Previtt operators for finding Gx and Gy.
func FGEDRoberts ¶
FGEDRoberts uses Roberts operators for fingding Gx and Gy.
func FGEDScharr ¶
FGEDScharr uses Scharr operators for finding Gx and Gy.
func FGPCIterative ¶
FGPCIterative is a simple binarization method.
func FGPCOtsuThresholding2 ¶
FGPCOtsuThresholding2 uses Otsu method for image binarization.
func FGPCThreshold ¶
FGPCCustomThreshold uses custom thresholds to segmentate image.
func GSDecomposition ¶
GSDecomposition - Brightness = Min or Max(Red, Green, Blue).
func GSDesaturation ¶
func GSDesaturation(img Image)
GSDesaturation - Brightness = ( Max(Red, Green, Blue) + Min(Red, Green, Blue) ) / 2.
func GSLuma ¶
func GSLuma(img Image)
GSLuma - Brightness = (Red * 0.2126 + Green * 0.7152 + Blue * 0.0722).
func GSSingleColor ¶
GSSingleColor - Brightness = Red or Green or Blue