예제 #1
0
        /// <summary>
        /// Searches an image for objects previously learned.
        /// </summary>
        /// <param name="imagePath">The image to search</param>
        /// <param name="objectId"></param>
        public List <ImageSearchResult> Search(string imagePath, int objectId)
        {
            WorldObject wo;

            if (WorldObjects.TryGetValue(objectId, out wo))
            {
                return(FeatureDetector.SearchImageForObjects(wo, imagePath));
            }

            throw new NoSuchObjectException("Object with ID " + objectId + " does not exist in the library.");
        }
예제 #2
0
 public ObjectView(Perspective perspective, string imagePath)
 {
     this._imagePerspective = perspective;
     this._imagePath        = imagePath;
     this.Features          = FeatureDetector.DetectFeatures_Brisk(imagePath);
 }