Documentation
¶
Overview ¶
gogh document
gogh project gogh.go
Index ¶
- Constants
- func Color(colors ...uint8) []uint8
- type Img
- func (img *Img) At(x, y int) *Pixel
- func (src *Img) Binarization(T int, reverse bool) *Img
- func (src *Img) Blur(blurtype, size int) *Img
- func (src *Img) Canny(th_high, th_low int) *Img
- func (src *Img) Clone() *Img
- func (src *Img) Draw(s shape.Shape, x, y int, color interface{})
- func (src *Img) Filter(mask interface{}, value ...int) *Img
- func (src *Img) FindEdge(maskX, maskY [][]float32, t int) *Img
- func (src *Img) Grayscale() *Img
- func (src *Img) Histogram() *histogram
- func (src *Img) Loop(some func(int, int, *Pixel))
- func (src *Img) MedianBlur(size int) *Img
- func (src *Img) Save(path string)
- type Pixel
Constants ¶
View Source
const ( BLUR_BOX = 0 BLUR_MEDIAN = 1 )
View Source
const ( GRAY = 0 GRAY16 = 1 NRGBA = 3 NRGBA64 = 4 RGBA = 5 RGBA64 = 6 )
View Source
const ( Kb = 0.0722 Kr = 0.2126 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Img ¶
type Img struct { Pixels []uint8 ImageType int Width int Height int Bounds image.Rectangle // contains filtered or unexported fields }
func (*Img) MedianBlur ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.