filter: more comments fixing

This commit is contained in:
Ella Pietraroia 2020-02-03 16:42:11 +10:30
parent 9c5b284d68
commit 45e0f2a817
2 changed files with 3 additions and 3 deletions

View File

@ -31,12 +31,12 @@ import (
"io"
)
// NewMOGFilter returns a pointer to a new NoOp struct for testing purposes only.
// NewMOG returns a pointer to a new NoOp struct for testing purposes only.
func NewMOG(dst io.WriteCloser, area, threshold float64, history int, debug bool, hf int) *NoOp {
return &NoOp{dst: dst}
}
// NewKNNFilter returns a pointer to a new NoOp struct for testing purposes only.
// NewKNN returns a pointer to a new NoOp struct for testing purposes only.
func NewKNN(dst io.WriteCloser, area, threshold float64, history, kernelSize int, debug bool, hf int) *NoOp {
return &NoOp{dst: dst}
}

View File

@ -51,7 +51,7 @@ type MOG struct {
hfCount int // Counter for the hold array.
}
// NewMOG returns a pointer to a new MOGFilter struct.
// NewMOG returns a pointer to a new MOG filter struct.
func NewMOG(dst io.WriteCloser, area, threshold float64, history int, debug bool, hf int) *MOG {
bs := gocv.NewBackgroundSubtractorMOG2WithParams(history, threshold, false)
k := gocv.GetStructuringElement(gocv.MorphRect, image.Pt(3, 3))