mirror of https://bitbucket.org/ausocean/av.git
filter: more comment fixing
This commit is contained in:
parent
45e0f2a817
commit
5ccc4fbf99
|
@ -51,7 +51,7 @@ type KNN struct {
|
||||||
hfCount int // Counter for the hold array.
|
hfCount int // Counter for the hold array.
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewKNN returns a pointer to a new KNNFilter.
|
// NewKNN returns a pointer to a new KNN filter struct.
|
||||||
func NewKNN(dst io.WriteCloser, area, threshold float64, history, kernelSize int, debug bool, hf int) *KNN {
|
func NewKNN(dst io.WriteCloser, area, threshold float64, history, kernelSize int, debug bool, hf int) *KNN {
|
||||||
bs := gocv.NewBackgroundSubtractorKNNWithParams(history, threshold, false)
|
bs := gocv.NewBackgroundSubtractorKNNWithParams(history, threshold, false)
|
||||||
k := gocv.GetStructuringElement(gocv.MorphRect, image.Pt(kernelSize, kernelSize))
|
k := gocv.GetStructuringElement(gocv.MorphRect, image.Pt(kernelSize, kernelSize))
|
||||||
|
|
|
@ -40,7 +40,7 @@ type VariableFPS struct {
|
||||||
count uint
|
count uint
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewVariableFPS returns a pointer to a new VariableFPSFilter struct.
|
// NewVariableFPS returns a pointer to a new VariableFPS filter struct.
|
||||||
func NewVariableFPS(dst io.WriteCloser, minFPS float64, filter Filter) *VariableFPS {
|
func NewVariableFPS(dst io.WriteCloser, minFPS float64, filter Filter) *VariableFPS {
|
||||||
frames := uint(25 / minFPS)
|
frames := uint(25 / minFPS)
|
||||||
return &VariableFPS{filter, dst, frames, 0}
|
return &VariableFPS{filter, dst, frames, 0}
|
||||||
|
|
Loading…
Reference in New Issue