diff src/MatchPipeline.h @ 155:2b61e0cb6847 structure

Make path retrieval available directly in pipeline; some ctor/operator= fixes (hopefully to become obsolete later)
author Chris Cannam
date Fri, 23 Jan 2015 17:33:37 +0000
parents 6914a6a01ffc
children eeed3498fe96
line wrap: on
line diff
--- a/src/MatchPipeline.h	Fri Jan 23 14:55:19 2015 +0000
+++ b/src/MatchPipeline.h	Fri Jan 23 17:33:37 2015 +0000
@@ -89,8 +89,20 @@
      */
     void finish();
 
-    MatchFeatureFeeder *getFeeder();
-    Finder *getFinder();
+    /**
+     * Retrieve the final path. Only valid once all the features have
+     * been supplied and finish() has been called.
+     *
+     * See Finder::retrievePath for more details.
+     */
+    int retrievePath(bool smooth, std::vector<int> &pathx, std::vector<int> &pathy);
+
+    /**
+     * Retrieve the forward path resulting from the online search.
+     *
+     * See MatchFeatureFeeder::retrieveForwardPath for more details.
+     */
+    void retrieveForwardPath(std::vector<int> &pathx, std::vector<int> &pathy);
     
 private:
     FeatureExtractor m_fe1;