Documentation
¶
Index ¶
- func CloseTemplateCache()
- func EmptyMask() gocv.Mat
- func GetMat(rows, cols int, matType gocv.MatType) gocv.Mat
- func GetMatFrom(src gocv.Mat) gocv.Mat
- func GetScaledTemplates(name string, template gocv.Mat, minScale, maxScale float64, steps int) []gocv.Mat
- func MatchTemplateBest(screen, template gocv.Mat, threshold float32) (image.Point, float64, error)
- func MatchTemplateRegion(screen, template gocv.Mat, rect image.Rectangle, threshold float32) (image.Point, float64, error)
- func PixelSearch(screen gocv.Mat, rect image.Rectangle, r, g, b int, tolerance int) (image.Point, error)
- func PutMat(mat gocv.Mat)
- func ResizeToHeight(src gocv.Mat, targetHeight int) gocv.Mat
- type MatPool
- type Match
- func MatchMultiScale(screen, template gocv.Mat, minScale, maxScale float64, steps int, ...) ([]Match, error)
- func MatchMultiScaleAllROICached(screen, template gocv.Mat, templateName string, minScale, maxScale float64, ...) ([]Match, error)
- func MatchMultiScaleROI(screen, template gocv.Mat, minScale, maxScale float64, steps int, ...) ([]Match, error)
- func MatchMultiScaleROICached(screen, template gocv.Mat, templateName string, minScale, maxScale float64, ...) ([]Match, error)
- func MatchTemplate(screen, template gocv.Mat, threshold float32) ([]Match, error)
- type ScaledTemplateCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseTemplateCache ¶
func CloseTemplateCache()
func EmptyMask ¶
EmptyMask returns a shared valid (non-nil) empty cv::Mat for use as the mask argument of cv::matchTemplate. Never close the returned Mat.
func GetScaledTemplates ¶
func MatchTemplateBest ¶
func MatchTemplateRegion ¶
func PixelSearch ¶
Types ¶
type MatPool ¶
type MatPool struct {
// contains filtered or unexported fields
}
func NewMatPool ¶
func NewMatPool() *MatPool
type Match ¶
func MatchMultiScale ¶
func MatchMultiScaleROI ¶
type ScaledTemplateCache ¶
type ScaledTemplateCache struct {
// contains filtered or unexported fields
}
func NewScaledTemplateCache ¶
func NewScaledTemplateCache() *ScaledTemplateCache
func (*ScaledTemplateCache) Close ¶
func (c *ScaledTemplateCache) Close()
func (*ScaledTemplateCache) GetOrBuild ¶
Click to show internal directories.
Click to hide internal directories.