Documentation ¶
Overview ¶
* 图像处理库 *
Index ¶
- func Binaryzation(src [][][]uint8, reference int) [][][]uint8
- func ClipImg(src [][][]uint8, x1, y1, x2, y2 int) [][][]uint8
- func DecodeImage(filePath string) (img image.Image, err error)
- func Dot(x []uint8, y []uint8) float64
- func GetXiangLiang(pngstr string) (re []uint8)
- func ImgMatrixToBytes(imgMatrix [][][]uint8) ([]byte, error)
- func LoadImg(filepath string) (imgMatrix [][][]uint8)
- func Matrix2Vector(imgMatrix [][][]uint8) (vector []uint8)
- func NaiveRemoveNoise(img [][][]uint8, pNum int) [][][]uint8
- func NaiveRemoveNoise2(img [][][]uint8) [][][]uint8
- func New3DSlice(x int, y int, z int) (theSlice [][][]uint8)
- func NewRGBAMatrix(height int, width int) (rgbaMatrix [][][]uint8)
- func QuiShx(src [][][]uint8) [][][]uint8
- func RGB2Gray(src [][][]uint8) [][][]uint8
- func RemoveLine(img [][][]uint8) [][][]uint8
- func Resize(src *image.NRGBA, width int, height int) *image.NRGBA
- func Rotate(img [][][]uint8, ang float64) [][][]uint8
- func SaveAsJPEG(filepath string, imgMatrix [][][]uint8, quality int) error
- func SaveAsPNG(filepath string, imgMatrix [][][]uint8) error
- func XiangSiDu(myx, myy []uint8) float64
- func ZhxFg(img [][][]uint8, reference int) (re [][][][]uint8, ok bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRGBAMatrix ¶
生成图片数组,4为rgba
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.