类 KalmanFilter
- java.lang.Object
-
- org.opencv.video.KalmanFilter
-
public class KalmanFilter extends java.lang.Object
卡尔曼滤波器类。此类实现标准卡尔曼滤波器 <http://en.wikipedia.org/wiki/Kalman_filter>,引用:Welch95。但是,您可以修改transitionMatrix、controlMatrix和measurementMatrix以获得扩展卡尔曼滤波器功能。注意:在C API中,当不再需要CvKalman\* kalmanFilter结构时,应使用cvReleaseKalman(&kalmanFilter)释放它。
-
-
字段摘要
字段 修饰符和类型 字段 描述 protected long
nativeObj
-
构造器摘要
构造器 修饰符 构造器 描述 KalmanFilter()
KalmanFilter(int dynamParams, int measureParams)
KalmanFilter(int dynamParams, int measureParams, int controlParams)
KalmanFilter(int dynamParams, int measureParams, int controlParams, int type)
protected
KalmanFilter(long addr)
-
方法摘要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 描述 static KalmanFilter
__fromPtr__(long addr)
Mat
correct(Mat measurement)
根据测量结果更新预测状态。protected void
finalize()
Mat
get_controlMatrix()
Mat
get_errorCovPost()
Mat
get_errorCovPre()
Mat
get_gain()
Mat
get_measurementMatrix()
Mat
get_measurementNoiseCov()
Mat
get_processNoiseCov()
Mat
get_statePost()
Mat
get_statePre()
Mat
get_transitionMatrix()
long
getNativeObjAddr()
Mat
predict()
计算预测状态。Mat
predict(Mat control)
计算预测状态。void
set_controlMatrix(Mat controlMatrix)
void
set_errorCovPost(Mat errorCovPost)
void
set_errorCovPre(Mat errorCovPre)
void
set_gain(Mat gain)
void
set_measurementMatrix(Mat measurementMatrix)
void
set_measurementNoiseCov(Mat measurementNoiseCov)
void
set_processNoiseCov(Mat processNoiseCov)
void
set_statePost(Mat statePost)
void
set_statePre(Mat statePre)
void
set_transitionMatrix(Mat transitionMatrix)
-
-
-
构造器详情
-
KalmanFilter
protected KalmanFilter(long addr)
-
KalmanFilter
public KalmanFilter()
-
KalmanFilter
public KalmanFilter(int dynamParams, int measureParams, int controlParams, int type)
- 参数
dynamParams
- 状态的维数。measureParams
- 测量的维数。controlParams
- 控制向量的维数。type
- 创建的矩阵的类型,应为 CV_32F 或 CV_64F。
-
KalmanFilter
public KalmanFilter(int dynamParams, int measureParams, int controlParams)
- 参数
dynamParams
- 状态的维数。measureParams
- 测量的维数。controlParams
- 控制向量的维数。
-
KalmanFilter
public KalmanFilter(int dynamParams, int measureParams)
- 参数
dynamParams
- 状态的维数。measureParams
- 测量的维数。
-
-
方法详情
-
getNativeObjAddr
public long getNativeObjAddr()
-
__fromPtr__
public static KalmanFilter __fromPtr__(long addr)
-
predict
public Mat predict()
计算预测状态。- 返回
- 自动生成
-
get_statePre
public Mat get_statePre()
-
set_statePre
public void set_statePre(Mat statePre)
-
get_statePost
public Mat get_statePost()
-
set_statePost
public void set_statePost(Mat statePost)
-
get_transitionMatrix
public Mat get_transitionMatrix()
-
set_transitionMatrix
public void set_transitionMatrix(Mat transitionMatrix)
-
get_controlMatrix
public Mat get_controlMatrix()
-
set_controlMatrix
public void set_controlMatrix(Mat controlMatrix)
-
get_measurementMatrix
public Mat get_measurementMatrix()
-
set_measurementMatrix
public void set_measurementMatrix(Mat measurementMatrix)
-
get_processNoiseCov
public Mat get_processNoiseCov()
-
set_processNoiseCov
public void set_processNoiseCov(Mat processNoiseCov)
-
get_measurementNoiseCov
public Mat get_measurementNoiseCov()
-
set_measurementNoiseCov
public void set_measurementNoiseCov(Mat measurementNoiseCov)
-
get_errorCovPre
public Mat get_errorCovPre()
-
set_errorCovPre
public void set_errorCovPre(Mat errorCovPre)
-
get_gain
public Mat get_gain()
-
set_gain
public void set_gain(Mat gain)
-
get_errorCovPost
public Mat get_errorCovPost()
-
set_errorCovPost
public void set_errorCovPost(Mat errorCovPost)
-
finalize
protected void finalize() throws java.lang.Throwable
- 重写
finalize
在类java.lang.Object
中- 抛出
java.lang.Throwable
-
-