Update modules/contrib/include/opencv2/contrib/contrib.hpp
authorberak <px1704@web.de>
Fri, 1 Feb 2013 20:13:55 +0000 (21:13 +0100)
committerberak <px1704@web.de>
Fri, 1 Feb 2013 20:13:55 +0000 (21:13 +0100)
class LevMarqSparse is not tagged CV_EXPORTS,
so the contrib module,  built the on win using vs won't contain that symbol,
trying to create an instance of LevMarqSparse will lead to a 'undefined symbol' err, because it did not make it into the library.

modules/contrib/include/opencv2/contrib/contrib.hpp

index 94f5cb0..3bf8e7a 100644 (file)
@@ -435,7 +435,7 @@ namespace cv
 
     typedef bool (*BundleAdjustCallback)(int iteration, double norm_error, void* user_data);
 
-    class LevMarqSparse {
+    class CV_EXPORTS LevMarqSparse {
     public:
         LevMarqSparse();
         LevMarqSparse(int npoints, // number of points