OpenCV 2.4.2

org.opencv.video
Class KalmanFilter

java.lang.Object
  extended by org.opencv.video.KalmanFilter

public class KalmanFilter
extends java.lang.Object

Kalman filter class.

The class implements a standard Kalman filter http://en.wikipedia.org/wiki/Kalman_filter, [Welch95]. However, you can modify transitionMatrix, controlMatrix, and measurementMatrix to get an extended Kalman filter functionality. See the OpenCV sample kalman.cpp.

See Also:
org.opencv.video.KalmanFilter

Field Summary
protected  long nativeObj
           
 
Constructor Summary
  KalmanFilter()
          The constructors.
  KalmanFilter(int dynamParams, int measureParams)
          The constructors.
  KalmanFilter(int dynamParams, int measureParams, int controlParams, int type)
          The constructors.
protected KalmanFilter(long addr)
           
 
Method Summary
 Mat correct(Mat measurement)
          Updates the predicted state from the measurement.
protected  void finalize()
           
 Mat predict()
          Computes a predicted state.
 Mat predict(Mat control)
          Computes a predicted state.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nativeObj

protected final long nativeObj
Constructor Detail

KalmanFilter

public KalmanFilter()

The constructors.

The full constructor.

Note: In C API when CvKalman* kalmanFilter structure is not needed anymore, it should be released with cvReleaseKalman(&kalmanFilter)

See Also:
org.opencv.video.KalmanFilter.KalmanFilter

KalmanFilter

public KalmanFilter(int dynamParams,
                    int measureParams)

The constructors.

The full constructor.

Note: In C API when CvKalman* kalmanFilter structure is not needed anymore, it should be released with cvReleaseKalman(&kalmanFilter)

Parameters:
dynamParams - Dimensionality of the state.
measureParams - Dimensionality of the measurement.
See Also:
org.opencv.video.KalmanFilter.KalmanFilter

KalmanFilter

public KalmanFilter(int dynamParams,
                    int measureParams,
                    int controlParams,
                    int type)

The constructors.

The full constructor.

Note: In C API when CvKalman* kalmanFilter structure is not needed anymore, it should be released with cvReleaseKalman(&kalmanFilter)

Parameters:
dynamParams - Dimensionality of the state.
measureParams - Dimensionality of the measurement.
controlParams - Dimensionality of the control vector.
type - Type of the created matrices that should be CV_32F or CV_64F.
See Also:
org.opencv.video.KalmanFilter.KalmanFilter

KalmanFilter

protected KalmanFilter(long addr)
Method Detail

correct

public Mat correct(Mat measurement)

Updates the predicted state from the measurement.

Parameters:
measurement - The measured system parameters
See Also:
org.opencv.video.KalmanFilter.correct

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

predict

public Mat predict()

Computes a predicted state.

See Also:
org.opencv.video.KalmanFilter.predict

predict

public Mat predict(Mat control)

Computes a predicted state.

Parameters:
control - The optional input control
See Also:
org.opencv.video.KalmanFilter.predict

Official OpenCV 2.4 Documentation