Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ArtotBin = func(w bool) func(<-chan [][]bool) <-chan []string { return u.GenChanFn(func(in <-chan [][]bool, out chan<- []string) { for e := range in { out <- bin2art(e, w) } }) }
turning 2d binary matrix to string array. whether reverse color.
View Source
var BinotImg = func(threshold int) func(<-chan Gray) <-chan [][]bool { return u.GenChanFn(func(in <-chan Gray, out chan<- [][]bool) { for im := range in { out <- img2bin(im, &threshold) } }) }
turning image to 2d binary matrix. use threshold to adjust the binarization.
View Source
var ResizeAndGray = func(scale float64) func(<-chan Img) <-chan Gray { return u.GenChanFn(func(in <-chan Img, out chan<- Gray) { for i := range in { out <- grayNearestNeighbor(scale, i) } }) }
resize the image with scale value, using nearestNeighbor. return a stream chan function.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.