Skip to content

Commit

Permalink
fix NewTemplateMatching
Browse files Browse the repository at this point in the history
  • Loading branch information
geon0430 authored and deadprogram committed Apr 2, 2024
1 parent e915c08 commit f5bba45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cuda/imgproc.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,9 @@ type TemplateMatching struct {
}

// NewTemplateMatching returns a new TemplateMatching.
func NewTemplateMatching(srcType int, method gocv.TemplateMatchMode) TemplateMatching {
func NewTemplateMatching(srcType gocv.MatType, method gocv.TemplateMatchMode) TemplateMatching {
return TemplateMatching{p: unsafe.Pointer(C.TemplateMatching_Create(C.int(srcType), C.int(method)))}
}

// Close TemplateMatching
func (tm *TemplateMatching) Close() error {
C.TemplateMatching_Close((C.TemplateMatching)(tm.p))
Expand Down

0 comments on commit f5bba45

Please sign in to comment.