Kalman

scalacv.Kalman
See theKalman companion object
final class Kalman extends AutoCloseable

A constant-velocity Kalman filter over a 2D point — the smoother behind ObjectTracker, useful on its own to steady a jittery detection or to coast through a frame where the measurement dropped out.

The state is position and velocity (x, y, vx, vy); you predict the next position, then correct it with a fresh measurement (or skip the correction if you have none this frame and trust the model). Owns a native filter — caller-owned, close it. Stateful and not safe to share across threads; give each thread its own, as with the detectors.

Attributes

Companion
object
Source
Tracking.scala
Graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def close(): Unit

Attributes

Source
Tracking.scala
def correct(measurement: Point): Point

Folds measurement into the model and returns the corrected (smoothed) position.

Folds measurement into the model and returns the corrected (smoothed) position.

Attributes

Source
Tracking.scala
def predict(): Point

Advances the model one step and returns the predicted position.

Advances the model one step and returns the predicted position.

Attributes

Source
Tracking.scala