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 RectRotateByCenter(x, y, l, w int, angle float64) []image.Point
- 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
- func Union(rect image.Rectangle, p image.Point) image.Rectangle
- type AveragePoolImage
- type Decode
- type Encode
- type MergeImage
- type Point
- type Rectangle
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 RectRotateByCenter ¶ added in v0.3.0
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 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
type Point ¶ added in v0.3.2
type Point[T constraintsi.Number] struct { X, Y T }
type Rectangle ¶ added in v0.3.2
type Rectangle[T constraintsi.Number] struct { Min, Max Point[T] }
func Rect ¶ added in v0.3.2
func Rect[T constraintsi.Number](x0, y0, x1, y1 T) Rectangle[T]
Click to show internal directories.
Click to hide internal directories.