/// <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."); }
public ObjectView(Perspective perspective, string imagePath) { this._imagePerspective = perspective; this._imagePath = imagePath; this.Features = FeatureDetector.DetectFeatures_Brisk(imagePath); }