/// <summary> /// Raises the destroy event. /// </summary> void OnDestroy() { if (rgbaMat != null) { rgbaMat.Dispose(); } if (measurement != null) { measurement.Dispose(); } KF.Dispose(); }
protected virtual void DisposeKalmanFilter() { if (predict_points != null) { predict_points.Clear(); } if (KF != null) { KF.Dispose(); } if (measurement != null) { measurement.Dispose(); } }