public void StartFeatureTracker() { try { if (Tracker == null) { Matcher = new ManagedA.wrapperFeatureMatcher(false, Environment.CurrentDirectory + "\\" + CameraSource.ActualDocument.Folder); Tracker = new ManagedA.wrapperRegistClass(false, CameraSource.SimCaptureToSourceImageRatio, Matcher); } //Tracker.createIndex(Environment.CurrentDirectory + "\\" + Controller.ActualDocument.Folder); Tracker.computeWarpMatrix(CameraSource.SimCaptureToSourceImageRatio); isStarted = true; } catch { return; } }
public void StartFeatureTracker() { try { if (Tracker == null) { //create index of features Matcher = new ManagedA.wrapperFeatureMatcher(true, Environment.CurrentDirectory + "\\" + Controller.ActualDocument.Folder); // create tracker Tracker = new ManagedA.wrapperRegistClass(true, Controller.SimCaptureToSourceImageRatio, Matcher); } // compute warp matrix (once) Tracker.computeWarpMatrix("homography.xml"); isStarted = true; } catch { return; } }
internal bool TryPort() { if (!useCamera) return false; try { if (Tracker == null) { Matcher = new ManagedA.wrapperFeatureMatcher(true, Environment.CurrentDirectory + "\\" + Controller.ActualDocument.Folder); Tracker = new ManagedA.wrapperRegistClass(true, Controller.SimCaptureToSourceImageRatio, Matcher); } if (Tracker.connectCamera() != -1) return true; } catch { return false; } return false; }