public void AppendAnnotation(string filePath) { ImageItemCollection images = new ImageItemCollection(); images.Load(filePath); _images.Append(images); foreach (var image in images.ImageItems) { foreach (var label in image.DisplayLabels) { _labels.Add(label); } } }
public void AppendIndex(string filePath) { ImageItemCollection images = new ImageItemCollection(); images.Load(filePath); _images.Append(images); foreach (var image in images.ImageItems) { _imageLocalDescriptors.Add(image.PointDescriptors); _imageGlobalColorDescriptors.Add(image.ColorDescriptors); } _localSimilarityEngine.Index(_imageLocalDescriptors); _globalSimilarityEngine.Index(_imageGlobalColorDescriptors); }