KalmanFilter
Objective-C
@interface KalmanFilter : NSObject
Swift
class KalmanFilter : NSObject
Kalman filter class.
The class implements a standard Kalman filter http://en.wikipedia.org/wiki/Kalman_filter, CITE: Welch95 . However, you can modify transitionMatrix, controlMatrix, and measurementMatrix to get an extended Kalman filter functionality.
Note
In C API when CvKalman* kalmanFilter structure is not needed anymore, it should be released with cvReleaseKalman(&kalmanFilter)Member of Video
-
Declaration
Objective-C
- (nonnull instancetype)initWithDynamParams:(int)dynamParams measureParams:(int)measureParams controlParams:(int)controlParams type:(int)type;
Swift
init(dynamParams: Int32, measureParams: Int32, controlParams: Int32, type: Int32)
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.
-
Declaration
Objective-C
- (nonnull instancetype)initWithDynamParams:(int)dynamParams measureParams:(int)measureParams controlParams:(int)controlParams;
Swift
init(dynamParams: Int32, measureParams: Int32, controlParams: Int32)
Parameters
dynamParams
Dimensionality of the state.
measureParams
Dimensionality of the measurement.
controlParams
Dimensionality of the control vector.
-
Declaration
Objective-C
- (nonnull instancetype)initWithDynamParams:(int)dynamParams measureParams:(int)measureParams;
Swift
init(dynamParams: Int32, measureParams: Int32)
Parameters
dynamParams
Dimensionality of the state.
measureParams
Dimensionality of the measurement.
-
Declaration
Objective-C
- (instancetype)init;
Swift
init()