Documentation ¶
Index ¶
- Constants
- Variables
- func CGA16(c color.Color) color.Color
- func CGA2(c color.Color) (n color.Color)
- func CGA4(c color.Color) (n color.Color)
- func ConstrastGrayColor(c color.Color, m uint8, p predicate) color.Color
- func DarkContrast(c color.Color) color.Color
- func DarkGrayColor(c color.Color) color.Color
- func EGA(c color.Color) color.Color
- func Gauss(s int) (*kernel, error)
- func GrayColor(c color.Color) color.Color
- func Identity(c color.Color) color.Color
- func InvertColor(c color.Color) color.Color
- func LightGrayColor(c color.Color) color.Color
- func LongEdge(bx, by int) bool
- func NewBasicFilter(transform TransformColor) *basicFilter
- func NewConvolutionFilter(k *kernel, pre, post TransformColor) *convolutionFilter
- func NewKernel(s int, m matrix, f int) (*kernel, error)
- func NewPixelFilter(stripes int, edge Edge, transform TransformColor) *pixelFilter
- func ShortEdge(bx, by int) bool
- func VGA(c color.Color) color.Color
- func XRayColor(c color.Color) color.Color
- type Block
- type Edge
- type Filter
- type TransformColor
Constants ¶
View Source
const (
Min int = 3
)
Variables ¶
View Source
var ( Identity_3x3 = kernel{ 3, []int{0, 0, 0, 0, 1, 0, 0, 0, 0}, 1, } RidgeDetection_3x3_soft = kernel{ 3, []int{0, -1, 0, -1, 4, -1, 0, -1, 0}, 1, } RidgeDetection_3x3_hard = kernel{ 3, []int{-1, -1, -1, -1, 8, -1, -1, -1, -1}, 1, } Sharpen_3x3 = kernel{ 3, []int{0, -1, 0, -1, 5, -1, 0, -1, 0}, 1, } Gauss_3x3 = kernel{ 3, []int{1, 1, 1, 1, 1, 1, 1, 1, 1}, 9, } )
View Source
var (
CGAPalettes map[int]color.Palette
)
Functions ¶
func NewBasicFilter ¶
func NewBasicFilter(transform TransformColor) *basicFilter
func NewConvolutionFilter ¶
func NewConvolutionFilter(k *kernel, pre, post TransformColor) *convolutionFilter
func NewPixelFilter ¶
func NewPixelFilter(stripes int, edge Edge, transform TransformColor) *pixelFilter
Types ¶
Click to show internal directories.
Click to hide internal directories.