mirror of https://bitbucket.org/ausocean/av.git
double newKNNFilter fix
This commit is contained in:
parent
71c0fdc022
commit
d8c611de52
|
@ -348,7 +348,6 @@ func (r *Revid) setupPipeline(mtsEnc func(dst io.WriteCloser, rate float64) (io.
|
|||
r.filters[i] = filter.NewKNNFilter(dst, r.cfg.KNNMinArea, r.cfg.KNNThreshold, int(r.cfg.KNNHistory), int(r.cfg.KNNKernel), r.cfg.ShowWindows, r.cfg.MotionInterval)
|
||||
case config.FilterDifference:
|
||||
r.filters[i] = filter.NewDifference(dst, r.cfg.ShowWindows, r.cfg.DiffThreshold)
|
||||
r.filters[i] = filter.NewKNNFilter(dst, knnMinArea, knnThreshold, knnHistory, knnKernel, r.cfg.ShowWindows)
|
||||
case config.FilterBasic:
|
||||
r.filters[i] = filter.NewBasicFilter(dst, r.cfg.ShowWindows)
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue