From 45e0f2a817dc825e1d7a39d4ece81d8273a29784 Mon Sep 17 00:00:00 2001 From: Ella Pietraroia Date: Mon, 3 Feb 2020 16:42:11 +1030 Subject: [PATCH] filter: more comments fixing --- filter/filters_circleci.go | 4 ++-- filter/mog.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/filter/filters_circleci.go b/filter/filters_circleci.go index e3554511..eba06743 100644 --- a/filter/filters_circleci.go +++ b/filter/filters_circleci.go @@ -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} } diff --git a/filter/mog.go b/filter/mog.go index 5cbbc883..80706ecf 100644 --- a/filter/mog.go +++ b/filter/mog.go @@ -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))