Package gov.nih.mipav.model.algorithms
Class libdt.DytexKalmanFilter
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.libdt.DytexKalmanFilter
-
- Enclosing class:
- libdt
class libdt.DytexKalmanFilter extends java.lang.Object
class for running the Kalman filter for dynamic texture inference. There are two ways to use the class: 1) instantiate with a DT to create a Kalman filter where most matrices are pre-computed. The KF instance can then be used for fast inference; 2) use the static functions to compute inference on a DT. In general, the first method should be used if the DT will not change and the KF will be used many times. The second method should be used if inference is required only once before the DT changes.
-
-
Field Summary
Fields Modifier and Type Field Description libdt.Mat
cache_detMt
< cache for an instantiated Kalman filter: Kalman gain matrices [n x m x tau].libdt.Dytex
cache_dt
< cache for an instantiated Kalman filter: inverse covariance matrix [m x m x tau].libdt.Mat[]
cache_invMt
< cache for an instantiated Kalman filter: determinant term [1 x tau].libdt.Mat[]
cache_Kt
-
Constructor Summary
Constructors Constructor Description DytexKalmanFilter(libdt.Dytex dt, int tau)
< cache for an instantiated Kalman filter: DT reference (use a pointer).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
loglike(java.util.Vector<libdt.Mat> videos, libdt.Mat lik, boolean mahal)
(package private) void
loglike_internal(libdt.Dytex dt, java.util.Vector<libdt.Mat> videos, libdt.Mat lik, int cache_tau, libdt.Mat[] cache_Kt, libdt.Mat cache_detMt, libdt.Mat[] cache_invMt, boolean mahal, libdt.kf_mode kfmode)
-
-
-
Field Detail
-
cache_Kt
public libdt.Mat[] cache_Kt
-
cache_detMt
public libdt.Mat cache_detMt
< cache for an instantiated Kalman filter: Kalman gain matrices [n x m x tau].
-
cache_invMt
public libdt.Mat[] cache_invMt
< cache for an instantiated Kalman filter: determinant term [1 x tau].
-
cache_dt
public libdt.Dytex cache_dt
< cache for an instantiated Kalman filter: inverse covariance matrix [m x m x tau].
-
-
Constructor Detail
-
DytexKalmanFilter
public DytexKalmanFilter(libdt.Dytex dt, int tau)
< cache for an instantiated Kalman filter: DT reference (use a pointer).
-
-
Method Detail
-
loglike_internal
void loglike_internal(libdt.Dytex dt, java.util.Vector<libdt.Mat> videos, libdt.Mat lik, int cache_tau, libdt.Mat[] cache_Kt, libdt.Mat cache_detMt, libdt.Mat[] cache_invMt, boolean mahal, libdt.kf_mode kfmode)
-
-