Documentation ¶
Index ¶
- func CalculateContrast(img image.Image) float64
- func CalculateOverlap(img1, img2 image.Image, col bool, minOverlap, maxOverlap int) int
- func CalculateOverlapReuseMemory(img1, img2 image.Image, col bool, minOverlap, maxOverlap int, ...) int
- func MergeUniformBoundsImagesByOverlap(imgIdxs [][]int, getImage func(int) image.Image, imgWidth, imgHeight int, ...) image.Image
- func MergeUniformBoundsImagesByOverlapReuseMemory(imgIdxs [][]int, getImage func(int) image.Image, imgWidth, imgHeight int, ...)
- func RectClipInBounds(rect *image.Rectangle, imgWidth, imgHeight int)
- func RectRotateByCenter(x, y, l, w int, angle float64) []image.Point
- func RectUnionPoint(rect image.Rectangle, p image.Point) image.Rectangle
- func ToGary(img image.Image) *image.Gray
- func ToGaryReuseMemory(img image.Image, gary *image.Gray)
- func Transfer(src, dst string, decode Decode, encode Encode) error
- type AveragePoolImage
- type Circle
- type CircularArc
- type Decode
- type Encode
- type Line
- type LineCap
- type MergeImage
- type Polygon
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateContrast ¶ added in v0.3.1
CalculateContrast 计算图片对比度
func CalculateOverlap ¶ added in v0.1.13
计算两张图的重合像素,第一张的图的后半部分和第二张的前半部分
func CalculateOverlapReuseMemory ¶ added in v0.3.0
func MergeUniformBoundsImagesByOverlap ¶ added in v0.3.0
func MergeUniformBoundsImagesByOverlap(imgIdxs [][]int, getImage func(int) image.Image, imgWidth, imgHeight int, horizontalOverlaps, verticalOverlaps []int) image.Image
有一定重合的固定大小的图片拼图
func MergeUniformBoundsImagesByOverlapReuseMemory ¶ added in v0.3.0
func RectClipInBounds ¶ added in v0.3.4
func RectRotateByCenter ¶ added in v0.3.0
func RectUnionPoint ¶ added in v0.3.4
Types ¶
type AveragePoolImage ¶ added in v0.3.1
func NewAveragePoolImage ¶ added in v0.3.1
func NewAveragePoolImage(img image.Image, reductionFactor int) *AveragePoolImage
func (*AveragePoolImage) Bounds ¶ added in v0.3.1
func (img *AveragePoolImage) Bounds() image.Rectangle
func (*AveragePoolImage) ColorModel ¶ added in v0.3.1
func (img *AveragePoolImage) ColorModel() color.Model
type CircularArc ¶ added in v0.3.4
counter clockwise if clockwise ,startX,startY <-> endX, endY
type MergeImage ¶ added in v0.3.0
type MergeImage struct { Pixes [][]image.Image Rect image.Rectangle // contains filtered or unexported fields }
func NewMergeImage ¶ added in v0.3.1
func NewMergeImage(imgs [][]image.Image, width, height int, horizontalOverlaps, verticalOverlaps []int) *MergeImage
func (*MergeImage) Bounds ¶ added in v0.3.1
func (m *MergeImage) Bounds() image.Rectangle
func (*MergeImage) ColorModel ¶ added in v0.3.1
func (m *MergeImage) ColorModel() color.Model
Source Files ¶
Click to show internal directories.
Click to hide internal directories.