Пример #1
0
        public void Dispose()
        {
            if (this.categoryBfmatcherMapping != null)
            {
                foreach (string matcherKey in this.categoryBfmatcherMapping.Keys)
                {
                    BFMatcher matcher = this.categoryBfmatcherMapping[matcherKey];
                    if (matcher != null)
                    {
                        matcher.Dispose();
                    }
                }

                this.categoryBfmatcherMapping.Clear();
            }
        }
Пример #2
0
 protected override void DisposeObject()
 {
     if (_modelKeypoints != null)
     {
         _modelKeypoints.Dispose();
         _modelKeypoints = null;
     }
     if (_modelDescriptors != null)
     {
         _modelDescriptors.Dispose();
         _modelDescriptors = null;
     }
     if (_modelDescriptorMatcher != null)
     {
         _modelDescriptorMatcher.Dispose();
         _modelDescriptorMatcher = null;
     }
     if (_octagon != null)
     {
         _octagon.Dispose();
         _octagon = null;
     }
 }