/// <summary>
        /// Raises the destroy event.
        /// </summary>
        void OnDestroy()
        {
            if (rgbaMat != null)
            {
                rgbaMat.Dispose();
            }

            if (measurement != null)
            {
                measurement.Dispose();
            }

            KF.Dispose();
        }
Exemplo n.º 2
0
 protected virtual void DisposeKalmanFilter()
 {
     if (predict_points != null)
     {
         predict_points.Clear();
     }
     if (KF != null)
     {
         KF.Dispose();
     }
     if (measurement != null)
     {
         measurement.Dispose();
     }
 }