image

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateOverlap added in v0.1.13

func CalculateOverlap(img1, img2 image.Image, row bool, minOverlap, maxOverlap int) int

计算两张图的重合像素,第一张的图的后半部分和第二张的前半部分

func ColorToGray added in v0.1.13

func ColorToGray(c color.Color) uint8

func MergeImages added in v0.1.13

func MergeImages(imgs [][]int, getImage func(int) image.Image, bounds image.Rectangle, horizontalOverlaps,
	verticalOverlaps []int) image.Image

func RGBAToGray added in v0.1.13

func RGBAToGray(c color.RGBA) uint8

func RGBToGray added in v0.1.13

func RGBToGray(c color.RGBA) uint8

func Union added in v0.1.2

func Union(rect image.Rectangle, p image.Point) image.Rectangle

func WebpToJpg

func WebpToJpg(src string, quality int) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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