Exemplo n.º 1
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (_trackWriter != null)
         {
             _trackWriter.Dispose();
             _trackWriter = null;
         }
         if (_imageWriter != null)
         {
             _imageWriter.Dispose();
             _imageWriter = null;
         }
         if (_backgroundWriter != null)
         {
             _backgroundWriter.Dispose();
             _backgroundWriter = null;
         }
         if (_laser != null)
         {
             _laser.Dispose();
         }
         if (_scanner != null)
         {
             _scanner.Dispose();
         }
         if (_camRegion != null)
         {
             _camRegion.Dispose();
             _camRegion = null;
         }
     }
 }
Exemplo n.º 2
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (_trackWriter != null)
         {
             _trackWriter.Dispose();
             _trackWriter = null;
         }
         if (_imageWriter != null)
         {
             _imageWriter.Dispose();
             _imageWriter = null;
         }
         if (_laser != null)
         {
             _laser.Dispose();
         }
         if (_scanner != null)
         {
             _scanner.Dispose();
         }
     }
 }
Exemplo n.º 3
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (_bgModel != null)
     {
         _bgModel.Dispose();
         _bgModel = null;
     }
     if (_fgModel != null)
     {
         _fgModel.Dispose();
         _fgModel = null;
     }
     if (_calc != null)
     {
         _calc.Dispose();
         _calc = null;
     }
     if (_foreground != null)
     {
         _foreground.Dispose();
         _foreground = null;
     }
     if (_markerBuffer != null)
     {
         Marshal.FreeHGlobal((IntPtr)_markerBuffer);
         _markerBuffer = null;
     }
     if (_laser != null)
     {
         _laser.Dispose();
         _laser = null;
     }
     if (_scanner != null)
     {
         _scanner.Hit(new IppiPoint_32f(0.0f, 0.0f));
         _scanner.Dispose();
         _scanner = null;
     }
     if (_strel3x3 != null)
     {
         _strel3x3.Dispose();
         _strel3x3 = null;
     }
 }