示例#1
0
 public virtual TValue this[TKey key]
 {
     get
     {
         // Provider
         return(_provider.GetValue(key));
     }
     set
     {
         // Provider
         _provider.Remove(key);
         _provider.Add(key, value);
     }
 }
示例#2
0
        public void Store(IStoreProvider <TFeature> storage, Bitmap bitmap, string subjectId)
        {
            var extract = Extract(ImageProvider.AdaptImage(bitmap));

            storage.Add(new Candidate <TFeature>
            {
                EntryId   = subjectId,
                Feautures = extract
            });
        }