Exemple #1
0
        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);
                }
            }
        }
Exemple #2
0
        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);
        }