Documentation ¶
Index ¶
- func And(pix1 [][]bool, pix2 [][]bool) [][]bool
- func AsImage(pix [][][3]uint8) image.Image
- func Binarize(pix [][]uint8, threshold uint8) [][]bool
- func Clone(b [][]bool) [][]bool
- func Crop(pix [][][3]uint8, sx, sy, ex, ey int) [][][3]uint8
- func CropGray(pix [][]uint8, sx, sy, ex, ey int) [][]uint8
- func Dilate(b [][]bool, amount int) [][]bool
- func DrawRect(pix [][][3]uint8, cx int, cy int, side int, color [3]uint8)
- func DrawRectangle(pix [][][3]uint8, sx int, sy int, ex int, ey int, width int, color [3]uint8)
- func DrawTransparent(pix [][][3]uint8, cx int, cy int, side int, color [3]int)
- func FillRectangle(pix [][][3]uint8, sx int, sy int, ex int, ey int, color [3]uint8)
- func Floodfill(b [][]bool, seen [][]bool, i int, j int) [][2]int
- func FromGray(pix [][]uint8) [][][3]uint8
- func MakeBin(x, y int) [][]bool
- func MakeBinLike(o [][]bool) [][]bool
- func MakeGrayImage(x, y int, color uint8) [][]uint8
- func MakeImage(x, y int, color [3]uint8) [][][3]uint8
- func Not(pix [][]bool) [][]bool
- func PointsToRect(points [][2]int) (int, int, int, int)
- func ReadGrayImage(fname string) [][]uint8
- func ReadImage(fname string) [][][3]uint8
- func ToGray(pix [][][3]uint8) [][]uint8
- func Unbinarize(b [][]bool, value uint8) [][]uint8
- func WriteGrayImage(fname string, pix [][]uint8)
- func WriteImage(fname string, pix [][][3]uint8)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawRectangle ¶
func DrawTransparent ¶
draw rectangle, transparent where color = -1
func FillRectangle ¶
func MakeBinLike ¶
func MakeGrayImage ¶
func ReadGrayImage ¶
func Unbinarize ¶
func WriteGrayImage ¶
func WriteImage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.