c++ - openCV 2.4.9 windows: InputArray is undefined -
i'm trying create dll wrapper using opencv in labview. i'm pretty new both of them (opencv & labview). use cvtriangulatepoints labview. i've created hpp file
#ifndef __opencv_precomp_h__ #define __opencv_precomp_h__ #include "cvconfig.h" #include "opencv2/calib3d/calib3d.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/imgproc/imgproc_c.h" #include "opencv2/core/internal.hpp" #include "opencv2/features2d/features2d.hpp" #include <vector> #ifdef have_tegra_optimization #include "opencv2/calib3d/calib3d_tegra.hpp" #else #define get_optimized(func) (func) #endif #endif
(this precomp.hpp, it's include in file triangulate.cpp opencv\sources\modules\calib3d\src) own hpp file:
#ifdef wrapperopencv_exports #define wrapperopencv_api __declspec(dllexport) #else #define wrapperopencv __declspec(dllimport) #endif #include "precomp.hpp" namespace wrapperopencv { class wrapperopencv { public: wrapperopencv_api void cvtriangulatepoints(cvmat* projmatr1, cvmat* projmatr2, cvmat* projpoints1, cvmat* projpoints2, cvmat* points4d); wrapperopencv_api void cvcorrectmatches(cvmat *f_, cvmat *points1_, cvmat *points2_, cvmat *new_points1, cvmat *new_points2); static wrapperopencv_api void triangulatepoints( inputarray _projmatr1, inputarray _projmatr2, inputarray _projpoints1, inputarray _projpoints2, outputarray _points4d ) }; }
with should able export these methods in labview.(i know still have implement functions in cpp file). problem : have error on inputarray , outputarray:
error: identifier "inputarray" undefined
anybody knows should fix ? help
the problem namespace:
cv::inputarray
or
... using namespace cv; namespace wrapperopencv { ...
everything work fine nox
Comments
Post a Comment