image

package
v0.0.0-...-4e3dcc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And

func And(pix1 [][]bool, pix2 [][]bool) [][]bool

func AsImage

func AsImage(pix [][][3]uint8) image.Image

func Binarize

func Binarize(pix [][]uint8, threshold uint8) [][]bool

func Clone

func Clone(b [][]bool) [][]bool

func Crop

func Crop(pix [][][3]uint8, sx, sy, ex, ey int) [][][3]uint8

func CropGray

func CropGray(pix [][]uint8, sx, sy, ex, ey int) [][]uint8

func Dilate

func Dilate(b [][]bool, amount int) [][]bool

func DrawRect

func DrawRect(pix [][][3]uint8, cx int, cy int, side int, color [3]uint8)

func DrawRectangle

func DrawRectangle(pix [][][3]uint8, sx int, sy int, ex int, ey int, width int, color [3]uint8)

func DrawTransparent

func DrawTransparent(pix [][][3]uint8, cx int, cy int, side int, color [3]int)

draw rectangle, transparent where color = -1

func FillRectangle

func FillRectangle(pix [][][3]uint8, sx int, sy int, ex int, ey int, color [3]uint8)

func Floodfill

func Floodfill(b [][]bool, seen [][]bool, i int, j int) [][2]int

func FromGray

func FromGray(pix [][]uint8) [][][3]uint8

func MakeBin

func MakeBin(x, y int) [][]bool

func MakeBinLike

func MakeBinLike(o [][]bool) [][]bool

func MakeGrayImage

func MakeGrayImage(x, y int, color uint8) [][]uint8

func MakeImage

func MakeImage(x, y int, color [3]uint8) [][][3]uint8

func Not

func Not(pix [][]bool) [][]bool

func PointsToRect

func PointsToRect(points [][2]int) (int, int, int, int)

func ReadGrayImage

func ReadGrayImage(fname string) [][]uint8

func ReadImage

func ReadImage(fname string) [][][3]uint8

func ToGray

func ToGray(pix [][][3]uint8) [][]uint8

func Unbinarize

func Unbinarize(b [][]bool, value uint8) [][]uint8

func WriteGrayImage

func WriteGrayImage(fname string, pix [][]uint8)

func WriteImage

func WriteImage(fname string, pix [][][3]uint8)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL