/home/vlab/WorkSpaces/ImgReg/build> make -j2
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- GSL using gsl-config /usr/local/bin/gsl-config
-- Using GSL from /usr/local
You have called ADD_LIBRARY for library cimg_tut without any source files. This typically indicates a problem with your CMakeLists.txt file
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vlab/WorkSpaces/ImgReg/build
Scanning dependencies of target core
Scanning dependencies of target core.out
[ 3%] Building CXX object CMakeFiles/core.dir/components/core/cvplot.cpp.o
[ 6%] Building CXX object CMakeFiles/core.out.dir/components/core/cvplot.cpp.o
[ 9%] Building CXX object CMakeFiles/core.dir/components/core/TMCDicomImage.cpp.o
[ 12%] Building CXX object CMakeFiles/core.out.dir/components/core/TMCDicomImage.cpp.o
[ 16%] Building CXX object CMakeFiles/core.dir/components/core/TMCDicomManager.cpp.o
[ 19%] Building CXX object CMakeFiles/core.out.dir/components/core/TMCDicomManager.cpp.o
[ 22%] Building CXX object CMakeFiles/core.dir/components/core/TMCDicomVolume.cpp.o
[ 25%] Building CXX object CMakeFiles/core.out.dir/components/core/TMCDicomVolume.cpp.o
[ 29%] Building CXX object CMakeFiles/core.dir/components/core/TMCFileStorageManager.cpp.o
[ 32%] Building CXX object CMakeFiles/core.out.dir/components/core/TMCFileStorageManager.cpp.o
[ 35%] Building CXX object CMakeFiles/core.dir/components/core/TMCGNUPlot.cpp.o
[ 38%] Building CXX object CMakeFiles/core.out.dir/components/core/TMCGNUPlot.cpp.o
[ 41%] Building CXX object CMakeFiles/core.dir/components/core/TMCLogger.cpp.o
[ 45%] Building CXX object CMakeFiles/core.out.dir/components/core/TMCLogger.cpp.o
[ 48%] Building CXX object CMakeFiles/core.dir/components/core/IOUtils.cpp.o
[ 51%] Building CXX object CMakeFiles/core.out.dir/components/core/IOUtils.cpp.o
[ 54%] Building CXX object CMakeFiles/core.dir/components/core/CImgOpenCVBridge.cpp.o
[ 58%] Building CXX object CMakeFiles/core.out.dir/components/core/CImgOpenCVBridge.cpp.o
[ 61%] Building CXX object CMakeFiles/core.dir/components/core/CImgVolume.cpp.o
[ 64%] Building CXX object CMakeFiles/core.out.dir/components/core/CImgVolume.cpp.o
In file included from /home/vlab/WorkSpaces/ImgReg/components/core/CImgVolume.hpp:9:0,
from /home/vlab/WorkSpaces/ImgReg/components/core/CImgVolume.cpp:1:
/home/vlab/WorkSpaces/ImgReg/components/core/CImgOpenCVBridge.hpp:15:0: warning: "cimg_verbosity" redefined [enabled by default]
#define cimg_verbosity 0
^
In file included from /home/vlab/WorkSpaces/ImgReg/components/core/CImgVolume.hpp:4:0,
from /home/vlab/WorkSpaces/ImgReg/components/core/CImgVolume.cpp:1:
/usr/local/include/cimg/CImg.h:246:0: note: this is the location of the previous definition
#define cimg_verbosity 1
^
In file included from /home/vlab/WorkSpaces/ImgReg/components/core/CImgVolume.hpp:9:0,
from /home/vlab/WorkSpaces/ImgReg/components/core/CImgVolume.cpp:1:
/home/vlab/WorkSpaces/ImgReg/components/core/CImgOpenCVBridge.hpp:15:0: warning: "cimg_verbosity" redefined [enabled by default]
#define cimg_verbosity 0
^
In file included from /home/vlab/WorkSpaces/ImgReg/components/core/CImgVolume.hpp:4:0,
from /home/vlab/WorkSpaces/ImgReg/components/core/CImgVolume.cpp:1:
/usr/local/include/cimg/CImg.h:246:0: note: this is the location of the previous definition
#define cimg_verbosity 1
^
[ 67%] Building CXX object CMakeFiles/core.dir/components/core/CImgPatientVolume.cpp.o
[ 70%] Building CXX object CMakeFiles/core.out.dir/components/core/CImgPatientVolume.cpp.o
In file included from /home/vlab/WorkSpaces/ImgReg/components/core/CImgPatientVolume.hpp:9:0,
from /home/vlab/WorkSpaces/ImgReg/components/core/CImgPatientVolume.cpp:1:
/home/vlab/WorkSpaces/ImgReg/components/core/CImgOpenCVBridge.hpp:15:0: warning: "cimg_verbosity" redefined [enabled by default]
#define cimg_verbosity 0
^
In file included from /home/vlab/WorkSpaces/ImgReg/components/core/CImgPatientVolume.hpp:4:0,
from /home/vlab/WorkSpaces/ImgReg/components/core/CImgPatientVolume.cpp:1:
/usr/local/include/cimg/CImg.h:246:0: note: this is the location of the previous definition
#define cimg_verbosity 1
^
In file included from /home/vlab/WorkSpaces/ImgReg/components/core/CImgPatientVolume.hpp:9:0,
from /home/vlab/WorkSpaces/ImgReg/components/core/CImgPatientVolume.cpp:1:
/home/vlab/WorkSpaces/ImgReg/components/core/CImgOpenCVBridge.hpp:15:0: warning: "cimg_verbosity" redefined [enabled by default]
#define cimg_verbosity 0
^
In file included from /home/vlab/WorkSpaces/ImgReg/components/core/CImgPatientVolume.hpp:4:0,
from /home/vlab/WorkSpaces/ImgReg/components/core/CImgPatientVolume.cpp:1:
/usr/local/include/cimg/CImg.h:246:0: note: this is the location of the previous definition
#define cimg_verbosity 1
^
[ 74%] Building CXX object CMakeFiles/core.dir/components/core/TPFileParser.cpp.o
[ 77%] Building CXX object CMakeFiles/core.out.dir/components/core/TPFileParser.cpp.o
Linking CXX static library libcore.a
[ 80%] Building CXX object CMakeFiles/core.out.dir/components/core/main.cpp.o
[ 80%] Built target core
Scanning dependencies of target cimg_tut
[ 80%] Built target cimg_tut
Scanning dependencies of target cimg_tut.out
[ 83%] Building CXX object CMakeFiles/cimg_tut.out.dir/components/cimg_tut/main.cpp.o
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:12:0:
/home/vlab/WorkSpaces/ImgReg/components/core/CImgOpenCVBridge.hpp:15:0: warning: "cimg_verbosity" redefined [enabled by default]
#define cimg_verbosity 0
^
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:6:0:
/usr/local/include/cimg/CImg.h:246:0: note: this is the location of the previous definition
#define cimg_verbosity 1
^
/home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:29:0: warning: "cimg_verbosity" redefined [enabled by default]
#define cimg_verbosity 1
^
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:12:0:
/home/vlab/WorkSpaces/ImgReg/components/core/CImgOpenCVBridge.hpp:15:0: note: this is the location of the previous definition
#define cimg_verbosity 0
^
In file included from /usr/include/tiffio.h:33:0,
from /usr/local/include/cimg/CImg.h:360,
from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:6:
/usr/local/include/opencv2/legacy/legacy.hpp:1972:9: error: expected identifier before numeric constant
COMPRESSION_NONE = 0,
^
/usr/local/include/opencv2/legacy/legacy.hpp:1972:9: error: expected ‘}’ before numeric constant
/usr/local/include/opencv2/legacy/legacy.hpp:1972:9: error: expected unqualified-id before numeric constant
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:0:
/usr/local/include/opencv2/legacy/legacy.hpp:1978:1: error: expected unqualified-id before ‘protected’
protected:
^
/usr/local/include/opencv2/legacy/legacy.hpp:1982:35: error: ‘virtual’ outside class declaration
virtual void finalize(RNG& rng);
^
/usr/local/include/opencv2/legacy/legacy.hpp:1983:53: error: ‘virtual’ outside class declaration
virtual int getLeaf(int fidx, const Mat& patch) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:1983:53: error: non-member function ‘int cv::getLeaf(int, const cv::Mat&)’ cannot have cv-qualifier
/usr/local/include/opencv2/legacy/legacy.hpp:1993:12: error: ‘Feature’ was not declared in this scope
vector<feature> features;
^
/usr/local/include/opencv2/legacy/legacy.hpp:1993:19: error: template argument 1 is invalid
vector<feature> features;
^
/usr/local/include/opencv2/legacy/legacy.hpp:1993:19: error: template argument 2 is invalid
/usr/local/include/opencv2/legacy/legacy.hpp:1993:29: error: invalid type in declaration before ‘;’ token
vector<feature> features;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2035:16: error: ‘vector’ has not been declared
void train(vector<basekeypoint> const& base_set, RNG &rng,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2035:22: error: expected ‘,’ or ‘...’ before ‘<’ token
void train(vector<basekeypoint> const& base_set, RNG &rng,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2037:16: error: ‘vector’ has not been declared
void train(vector<basekeypoint> const& base_set, RNG &rng,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2037:22: error: expected ‘,’ or ‘...’ before ‘<’ token
void train(vector<basekeypoint> const& base_set, RNG &rng,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2037:10: error: ‘void RandomizedTree::train(int)’ cannot be overloaded
void train(vector<basekeypoint> const& base_set, RNG &rng,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2035:10: error: with ‘void RandomizedTree::train(int)’
void train(vector<basekeypoint> const& base_set, RNG &rng,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2072:5: error: ‘vector’ does not name a type
vector<rtreenode> nodes_;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2075:5: error: ‘vector’ does not name a type
vector<int> leaf_counts_;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2077:37: error: ‘RNG’ has not been declared
void createNodes(int num_nodes, RNG &rng);
^
/usr/local/include/opencv2/legacy/legacy.hpp:2080:39: error: ‘RNG’ has not been declared
void init(int classes, int depth, RNG &rng);
^
/usr/local/include/opencv2/legacy/legacy.hpp:2145:16: error: ‘vector’ has not been declared
void train(vector<basekeypoint> const& base_set,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2145:22: error: expected ‘,’ or ‘...’ before ‘<’ token
void train(vector<basekeypoint> const& base_set,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2152:16: error: ‘vector’ has not been declared
void train(vector<basekeypoint> const& base_set,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2152:22: error: expected ‘,’ or ‘...’ before ‘<’ token
void train(vector<basekeypoint> const& base_set,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2152:10: error: ‘void RTreeClassifier::train(int)’ cannot be overloaded
void train(vector<basekeypoint> const& base_set,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2145:10: error: with ‘void RTreeClassifier::train(int)’
void train(vector<basekeypoint> const& base_set,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2189:5: error: ‘vector’ does not name a type
vector<randomizedtree> trees_;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2328:26: error: ‘FileNode’ does not name a type
int ReadByName(const FileNode &parent, const char* name);
^
/usr/local/include/opencv2/legacy/legacy.hpp:2359:5: error: ‘string’ does not name a type
string m_feature_name; // the name of the feature associated with the descriptor
^
/usr/local/include/opencv2/legacy/legacy.hpp:2385:67: error: ‘string’ does not name a type
OneWayDescriptorBase(CvSize patch_size, int pose_count, const string &pca_filename, const string &train_path = string(), const string &images_list = string(),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2385:95: error: ‘string’ does not name a type
OneWayDescriptorBase(CvSize patch_size, int pose_count, const string &pca_filename, const string &train_path = string(), const string &images_list = string(),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2385:132: error: ‘string’ does not name a type
OneWayDescriptorBase(CvSize patch_size, int pose_count, const string &pca_filename, const string &train_path = string(), const string &images_list = string(),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2415:58: error: ‘vector’ does not name a type
void CreateDescriptorsFromImage(IplImage* src, const vector<keypoint>& features);
^
/usr/local/include/opencv2/legacy/legacy.hpp:2415:64: error: expected ‘,’ or ‘...’ before ‘<’ token
void CreateDescriptorsFromImage(IplImage* src, const vector<keypoint>& features);
^
/usr/local/include/opencv2/legacy/legacy.hpp:2439:49: error: ‘vector’ has not been declared
void FindDescriptor(IplImage* patch, int n, vector<int>& desc_idxs, vector<int>& pose_idxs,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2439:55: error: expected ‘,’ or ‘...’ before ‘<’ token
void FindDescriptor(IplImage* patch, int n, vector<int>& desc_idxs, vector<int>& pose_idxs,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2465:74: error: ‘KeyPoint’ does not name a type
void InitializeDescriptor(int desc_idx, IplImage* train_image, const KeyPoint& keypoint, const char* feature_label);
^
/usr/local/include/opencv2/legacy/legacy.hpp:2468:61: error: ‘vector’ does not name a type
void InitializeDescriptors(IplImage* train_image, const vector<keypoint>& features,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2468:67: error: expected ‘,’ or ‘...’ before ‘<’ token
void InitializeDescriptors(IplImage* train_image, const vector<keypoint>& features,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2473:17: error: ‘FileStorage’ has not been declared
void Write (FileStorage &fs) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2477:22: error: ‘FileNode’ does not name a type
void Read (const FileNode &fn);
^
/usr/local/include/opencv2/legacy/legacy.hpp:2485:34: error: ‘FileNode’ does not name a type
int LoadPCADescriptors(const FileNode &fn);
^
/usr/local/include/opencv2/legacy/legacy.hpp:2519:12: error: ‘string’ does not name a type
static string GetPCAFilename () { return "pca.yml"; }
^
/usr/local/include/opencv2/legacy/legacy.hpp:2550:22: error: ‘FileStorage’ has not been declared
void SavePCAall (FileStorage &fs) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2554:28: error: ‘FileNode’ does not name a type
void LoadPCAall (const FileNode &fn);
^
/usr/local/include/opencv2/legacy/legacy.hpp:2385:123: error: ‘string’ was not declared in this scope
OneWayDescriptorBase(CvSize patch_size, int pose_count, const string &pca_filename, const string &train_path = string(), const string &images_list = string(),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2385:123: note: suggested alternatives:
In file included from /usr/include/c++/4.8.2/string:39:0,
from /usr/include/ImageMagick/Magick++/Image.h:12,
from /usr/include/ImageMagick/Magick++.h:10,
from /usr/local/include/cimg/CImg.h:411,
from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:6:
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note: ‘std::string’
typedef basic_string<char> string;
^
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note: ‘std::string’
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:0:
/usr/local/include/opencv2/legacy/legacy.hpp:2385:161: error: ‘string’ was not declared in this scope
OneWayDescriptorBase(CvSize patch_size, int pose_count, const string &pca_filename, const string &train_path = string(), const string &images_list = string(),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2385:161: note: suggested alternatives:
In file included from /usr/include/c++/4.8.2/string:39:0,
from /usr/include/ImageMagick/Magick++/Image.h:12,
from /usr/include/ImageMagick/Magick++.h:10,
from /usr/local/include/cimg/CImg.h:411,
from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:6:
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note: ‘std::string’
typedef basic_string<char> string;
^
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note: ‘std::string’
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:0:
/usr/local/include/opencv2/legacy/legacy.hpp:2571:69: error: ‘string’ does not name a type
OneWayDescriptorObject(CvSize patch_size, int pose_count, const string &pca_filename,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2572:34: error: ‘string’ does not name a type
const string &train_path = string (), const string &images_list = string (),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2572:72: error: ‘string’ does not name a type
const string &train_path = string (), const string &images_list = string (),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2584:35: error: ‘vector’ does not name a type
void SetLabeledFeatures(const vector<keypoint>& features) {m_train_features = features;};
^
/usr/local/include/opencv2/legacy/legacy.hpp:2584:41: error: expected ‘,’ or ‘...’ before ‘<’ token
void SetLabeledFeatures(const vector<keypoint>& features) {m_train_features = features;};
^
/usr/local/include/opencv2/legacy/legacy.hpp:2585:5: error: ‘vector’ does not name a type
vector<keypoint>& GetLabeledFeatures() {return m_train_features;};
^
/usr/local/include/opencv2/legacy/legacy.hpp:2586:11: error: ‘vector’ does not name a type
const vector<keypoint>& GetLabeledFeatures() const {return m_train_features;};
^
/usr/local/include/opencv2/legacy/legacy.hpp:2587:5: error: ‘vector’ does not name a type
vector<keypoint> _GetLabeledFeatures() const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2600:67: error: ‘vector’ does not name a type
void InitializeObjectDescriptors(IplImage* train_image, const vector<keypoint>& features,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2600:73: error: expected ‘,’ or ‘...’ before ‘<’ token
void InitializeObjectDescriptors(IplImage* train_image, const vector<keypoint>& features,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2609:5: error: ‘vector’ does not name a type
vector<keypoint> m_train_features; // train features
^
/usr/local/include/opencv2/legacy/legacy.hpp:2572:63: error: ‘string’ was not declared in this scope
const string &train_path = string (), const string &images_list = string (),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2572:63: note: suggested alternatives:
In file included from /usr/include/c++/4.8.2/string:39:0,
from /usr/include/ImageMagick/Magick++/Image.h:12,
from /usr/include/ImageMagick/Magick++.h:10,
from /usr/local/include/cimg/CImg.h:411,
from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:6:
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note: ‘std::string’
typedef basic_string<char> string;
^
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note: ‘std::string’
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:0:
/usr/local/include/opencv2/legacy/legacy.hpp:2572:102: error: ‘string’ was not declared in this scope
const string &train_path = string (), const string &images_list = string (),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2572:102: note: suggested alternatives:
In file included from /usr/include/c++/4.8.2/string:39:0,
from /usr/include/ImageMagick/Magick++/Image.h:12,
from /usr/include/ImageMagick/Magick++.h:10,
from /usr/local/include/cimg/CImg.h:411,
from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:6:
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note: ‘std::string’
typedef basic_string<char> string;
^
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note: ‘std::string’
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:0:
/usr/local/include/opencv2/legacy/legacy.hpp: In member function ‘void OneWayDescriptorObject::SetLabeledFeatures(int)’:
/usr/local/include/opencv2/legacy/legacy.hpp:2584:64: error: ‘m_train_features’ was not declared in this scope
void SetLabeledFeatures(const vector<keypoint>& features) {m_train_features = features;};
^
/usr/local/include/opencv2/legacy/legacy.hpp:2584:83: error: ‘features’ was not declared in this scope
void SetLabeledFeatures(const vector<keypoint>& features) {m_train_features = features;};
^
/usr/local/include/opencv2/legacy/legacy.hpp:2584:83: note: suggested alternative:
/usr/local/include/opencv2/legacy/legacy.hpp:1993:21: note: ‘cv::features’
vector<feature> features;
^
/usr/local/include/opencv2/legacy/legacy.hpp: At global scope:
/usr/local/include/opencv2/legacy/legacy.hpp:2622:1: error: expected class-name before ‘{’ token
{
^
/usr/local/include/opencv2/legacy/legacy.hpp:2635:16: error: ‘Size’ has not been declared
Size patchSize = Size(PATCH_WIDTH, PATCH_HEIGHT),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2636:16: error: ‘string’ has not been declared
string pcaFilename = string(),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2637:16: error: ‘string’ has not been declared
string trainPath = string(), string trainImagesList = string(),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2637:45: error: ‘string’ has not been declared
string trainPath = string(), string trainImagesList = string(),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2642:9: error: ‘Size’ does not name a type
Size patchSize;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2643:9: error: ‘string’ does not name a type
string pcaFilename;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2644:9: error: ‘string’ does not name a type
string trainPath;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2645:9: error: ‘string’ does not name a type
string trainImagesList;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2653:50: error: ‘Ptr’ does not name a type
void initialize( const Params& params, const Ptr<onewaydescriptorbase>& base=Ptr<onewaydescriptorbase>() );
^
/usr/local/include/opencv2/legacy/legacy.hpp:2653:53: error: expected ‘,’ or ‘...’ before ‘<’ token
void initialize( const Params& params, const Ptr<onewaydescriptorbase>& base=Ptr<onewaydescriptorbase>() );
^
/usr/local/include/opencv2/legacy/legacy.hpp:2662:30: error: ‘FileNode’ does not name a type
virtual void read( const FileNode &fn );
^
/usr/local/include/opencv2/legacy/legacy.hpp:2663:25: error: ‘FileStorage’ has not been declared
virtual void write( FileStorage& fs ) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2667:13: error: ‘Ptr’ does not name a type
virtual Ptr<genericdescriptormatcher> clone( bool emptyTrainData=false ) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2676:38: error: ‘Mat’ does not name a type
virtual void knnMatchImpl( const Mat& queryImage, vector<keypoint>& queryKeypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2676:55: error: ‘vector’ has not been declared
virtual void knnMatchImpl( const Mat& queryImage, vector<keypoint>& queryKeypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2676:61: error: expected ‘,’ or ‘...’ before ‘<’ token
virtual void knnMatchImpl( const Mat& queryImage, vector<keypoint>& queryKeypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2679:41: error: ‘Mat’ does not name a type
virtual void radiusMatchImpl( const Mat& queryImage, vector<keypoint>& queryKeypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2679:58: error: ‘vector’ has not been declared
virtual void radiusMatchImpl( const Mat& queryImage, vector<keypoint>& queryKeypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2679:64: error: expected ‘,’ or ‘...’ before ‘<’ token
virtual void radiusMatchImpl( const Mat& queryImage, vector<keypoint>& queryKeypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2683:5: error: ‘Ptr’ does not name a type
Ptr<onewaydescriptorbase> base;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2635:63: error: ‘Size’ was not declared in this scope
Size patchSize = Size(PATCH_WIDTH, PATCH_HEIGHT),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2635:63: note: suggested alternative:
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:50:0,
from /usr/local/include/opencv2/legacy/legacy.hpp:45,
from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:
/usr/local/include/opencv2/core/core.hpp:889:16: note: ‘cv::Size’
typedef Size2i Size;
^
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:0:
/usr/local/include/opencv2/legacy/legacy.hpp:2636:44: error: ‘string’ was not declared in this scope
string pcaFilename = string(),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2636:44: note: suggested alternatives:
In file included from /usr/include/c++/4.8.2/string:39:0,
from /usr/include/ImageMagick/Magick++/Image.h:12,
from /usr/include/ImageMagick/Magick++.h:10,
from /usr/local/include/cimg/CImg.h:411,
from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:6:
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note: ‘std::string’
typedef basic_string<char> string;
^
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note: ‘std::string’
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:0:
/usr/local/include/opencv2/legacy/legacy.hpp:2637:42: error: ‘string’ was not declared in this scope
string trainPath = string(), string trainImagesList = string(),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2637:42: note: suggested alternatives:
In file included from /usr/include/c++/4.8.2/string:39:0,
from /usr/include/ImageMagick/Magick++/Image.h:12,
from /usr/include/ImageMagick/Magick++.h:10,
from /usr/local/include/cimg/CImg.h:411,
from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:6:
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note: ‘std::string’
typedef basic_string<char> string;
^
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note: ‘std::string’
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:0:
/usr/local/include/opencv2/legacy/legacy.hpp:2637:77: error: ‘string’ was not declared in this scope
string trainPath = string(), string trainImagesList = string(),
^
/usr/local/include/opencv2/legacy/legacy.hpp:2637:77: note: suggested alternatives:
In file included from /usr/include/c++/4.8.2/string:39:0,
from /usr/include/ImageMagick/Magick++/Image.h:12,
from /usr/include/ImageMagick/Magick++.h:10,
from /usr/local/include/cimg/CImg.h:411,
from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:6:
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note: ‘std::string’
typedef basic_string<char> string;
^
/usr/include/c++/4.8.2/bits/stringfwd.h:62:33: note: ‘std::string’
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:0:
/usr/local/include/opencv2/legacy/legacy.hpp:2650:58: error: call to ‘OneWayDescriptorMatcher::Params::Params(int, int, int, int, int, float, float, float)’ uses the default argument for parameter 2, which is not yet defined
OneWayDescriptorMatcher( const Params& params=Params() );
^
/usr/local/include/opencv2/legacy/legacy.hpp:2650:58: error: call to ‘OneWayDescriptorMatcher::Params::Params(int, int, int, int, int, float, float, float)’ uses the default argument for parameter 3, which is not yet defined
/usr/local/include/opencv2/legacy/legacy.hpp:2650:58: error: call to ‘OneWayDescriptorMatcher::Params::Params(int, int, int, int, int, float, float, float)’ uses the default argument for parameter 4, which is not yet defined
/usr/local/include/opencv2/legacy/legacy.hpp:2650:58: error: call to ‘OneWayDescriptorMatcher::Params::Params(int, int, int, int, int, float, float, float)’ uses the default argument for parameter 5, which is not yet defined
/usr/local/include/opencv2/legacy/legacy.hpp:2695:1: error: expected class-name before ‘{’ token
{
^
/usr/local/include/opencv2/legacy/legacy.hpp:2707:22: error: ‘PatchGenerator’ does not name a type
const PatchGenerator& patchGenerator=PatchGenerator() );
^
/usr/local/include/opencv2/legacy/legacy.hpp:2709:23: error: ‘string’ does not name a type
Params( const string& filename );
^
/usr/local/include/opencv2/legacy/legacy.hpp:2718:9: error: ‘PatchGenerator’ does not name a type
PatchGenerator patchGenerator;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2720:9: error: ‘string’ does not name a type
string filename;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2732:30: error: ‘FileNode’ does not name a type
virtual void read( const FileNode &fn );
^
/usr/local/include/opencv2/legacy/legacy.hpp:2733:25: error: ‘FileStorage’ has not been declared
virtual void write( FileStorage& fs ) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2736:13: error: ‘Ptr’ does not name a type
virtual Ptr<genericdescriptormatcher> clone( bool emptyTrainData=false ) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2739:38: error: ‘Mat’ does not name a type
virtual void knnMatchImpl( const Mat& queryImage, vector<keypoint>& queryKeypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2739:55: error: ‘vector’ has not been declared
virtual void knnMatchImpl( const Mat& queryImage, vector<keypoint>& queryKeypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2739:61: error: expected ‘,’ or ‘...’ before ‘<’ token
virtual void knnMatchImpl( const Mat& queryImage, vector<keypoint>& queryKeypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2742:41: error: ‘Mat’ does not name a type
virtual void radiusMatchImpl( const Mat& queryImage, vector<keypoint>& queryKeypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2742:58: error: ‘vector’ has not been declared
virtual void radiusMatchImpl( const Mat& queryImage, vector<keypoint>& queryKeypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2742:64: error: expected ‘,’ or ‘...’ before ‘<’ token
virtual void radiusMatchImpl( const Mat& queryImage, vector<keypoint>& queryKeypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2747:41: error: ‘Mat’ does not name a type
void calcBestProbAndMatchIdx( const Mat& image, const Point2f& pt,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2747:59: error: ‘Point2f’ does not name a type
void calcBestProbAndMatchIdx( const Mat& image, const Point2f& pt,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2748:70: error: ‘vector’ has not been declared
float& bestProb, int& bestMatchIdx, vector<float>& signature );
^
/usr/local/include/opencv2/legacy/legacy.hpp:2748:76: error: expected ‘,’ or ‘...’ before ‘<’ token
float& bestProb, int& bestMatchIdx, vector<float>& signature );
^
/usr/local/include/opencv2/legacy/legacy.hpp:2749:5: error: ‘Ptr’ does not name a type
Ptr<fernclassifier> classifier;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2701:30: error: ‘FernClassifier’ has not been declared
int patchSize=FernClassifier::PATCH_SIZE,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2702:34: error: ‘FernClassifier’ has not been declared
int signatureSize=FernClassifier::DEFAULT_SIGNATURE_SIZE,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2703:29: error: ‘FernClassifier’ has not been declared
int nstructs=FernClassifier::DEFAULT_STRUCTS,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2704:31: error: ‘FernClassifier’ has not been declared
int structSize=FernClassifier::DEFAULT_STRUCT_SIZE,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2705:27: error: ‘FernClassifier’ has not been declared
int nviews=FernClassifier::DEFAULT_VIEWS,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2706:38: error: ‘FernClassifier’ has not been declared
int compressionMethod=FernClassifier::COMPRESSION_NONE,
^
In file included from /usr/include/tiffio.h:33:0,
from /usr/local/include/cimg/CImg.h:360,
from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:6:
/usr/local/include/opencv2/legacy/legacy.hpp:2706:54: error: expected unqualified-id before numeric constant
int compressionMethod=FernClassifier::COMPRESSION_NONE,
^
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:0:
/usr/local/include/opencv2/legacy/legacy.hpp:2707:68: error: ‘PatchGenerator’ was not declared in this scope
const PatchGenerator& patchGenerator=PatchGenerator() );
^
/usr/local/include/opencv2/legacy/legacy.hpp:2707:68: note: suggested alternative:
/usr/local/include/opencv2/legacy/legacy.hpp:1845:18: note: ‘cv::PatchGenerator’
class CV_EXPORTS PatchGenerator
^
/usr/local/include/opencv2/legacy/legacy.hpp:2723:56: error: call to ‘FernDescriptorMatcher::Params::Params(int, int, int, int, int, int, int, const int&)’ uses the default argument for parameter 2, which is not yet defined
FernDescriptorMatcher( const Params& params=Params() );
^
/usr/local/include/opencv2/legacy/legacy.hpp:2723:56: error: call to ‘FernDescriptorMatcher::Params::Params(int, int, int, int, int, int, int, const int&)’ uses the default argument for parameter 3, which is not yet defined
/usr/local/include/opencv2/legacy/legacy.hpp:2723:56: error: call to ‘FernDescriptorMatcher::Params::Params(int, int, int, int, int, int, int, const int&)’ uses the default argument for parameter 4, which is not yet defined
/usr/local/include/opencv2/legacy/legacy.hpp:2723:56: error: call to ‘FernDescriptorMatcher::Params::Params(int, int, int, int, int, int, int, const int&)’ uses the default argument for parameter 5, which is not yet defined
/usr/local/include/opencv2/legacy/legacy.hpp:2723:56: error: call to ‘FernDescriptorMatcher::Params::Params(int, int, int, int, int, int, int, const int&)’ uses the default argument for parameter 6, which is not yet defined
/usr/local/include/opencv2/legacy/legacy.hpp:2723:56: error: call to ‘FernDescriptorMatcher::Params::Params(int, int, int, int, int, int, int, const int&)’ uses the default argument for parameter 7, which is not yet defined
/usr/local/include/opencv2/legacy/legacy.hpp:2723:56: error: call to ‘FernDescriptorMatcher::Params::Params(int, int, int, int, int, int, int, const int&)’ uses the default argument for parameter 8, which is not yet defined
/usr/local/include/opencv2/legacy/legacy.hpp:2760:1: error: expected class-name before ‘{’ token
{
^
/usr/local/include/opencv2/legacy/legacy.hpp:2762:40: error: ‘string’ does not name a type
CalonderDescriptorExtractor( const string& classifierFile );
^
/usr/local/include/opencv2/legacy/legacy.hpp:2764:30: error: ‘FileNode’ does not name a type
virtual void read( const FileNode &fn );
^
/usr/local/include/opencv2/legacy/legacy.hpp:2765:25: error: ‘FileStorage’ has not been declared
virtual void write( FileStorage &fs ) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2773:37: error: ‘Mat’ does not name a type
virtual void computeImpl( const Mat& image, vector<keypoint>& keypoints, Mat& descriptors ) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2773:49: error: ‘vector’ has not been declared
virtual void computeImpl( const Mat& image, vector<keypoint>& keypoints, Mat& descriptors ) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2773:55: error: expected ‘,’ or ‘...’ before ‘<’ token
virtual void computeImpl( const Mat& image, vector<keypoint>& keypoints, Mat& descriptors ) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp: In member function ‘virtual int CalonderDescriptorExtractor<t>::descriptorType() const’:
/usr/local/include/opencv2/legacy/legacy.hpp:2768:49: error: ‘DataType’ was not declared in this scope
virtual int descriptorType() const { return DataType<t>::type; }
^
/usr/local/include/opencv2/legacy/legacy.hpp:2768:49: note: suggested alternative:
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:50:0,
from /usr/local/include/opencv2/legacy/legacy.hpp:45,
from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:
/usr/local/include/opencv2/core/core.hpp:999:30: note: ‘cv::DataType’
template<typename _tp=""> class DataType
^
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:0:
/usr/local/include/opencv2/legacy/legacy.hpp:2768:59: error: expected primary-expression before ‘>’ token
virtual int descriptorType() const { return DataType<t>::type; }
^
/usr/local/include/opencv2/legacy/legacy.hpp:2768:60: error: ‘::type’ has not been declared
virtual int descriptorType() const { return DataType<t>::type; }
^
/usr/local/include/opencv2/legacy/legacy.hpp:2768:60: note: suggested alternative:
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:6:0:
/usr/local/include/cimg/CImg.h:2455:33: note: ‘cimg_library::cimg::type’
template<typename t=""> struct type {
^
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:0:
/usr/local/include/opencv2/legacy/legacy.hpp: At global scope:
/usr/local/include/opencv2/legacy/legacy.hpp:2780:1: error: prototype for ‘CalonderDescriptorExtractor<t>::CalonderDescriptorExtractor(const string&)’ does not match any in class ‘CalonderDescriptorExtractor<t>’
CalonderDescriptorExtractor<t>::CalonderDescriptorExtractor(const std::string& classifier_file)
^
/usr/local/include/opencv2/legacy/legacy.hpp:2762:5: error: candidate is: CalonderDescriptorExtractor<t>::CalonderDescriptorExtractor(const int&)
CalonderDescriptorExtractor( const string& classifierFile );
^
/usr/local/include/opencv2/legacy/legacy.hpp:2786:57: error: ‘Mat’ does not name a type
void CalonderDescriptorExtractor<t>::computeImpl( const Mat& image,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2787:50: error: ‘vector’ has not been declared
vector<keypoint>& keypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2787:56: error: expected ‘,’ or ‘...’ before ‘<’ token
vector<keypoint>& keypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp: In member function ‘virtual void CalonderDescriptorExtractor<t>::computeImpl(const int&, int) const’:
/usr/local/include/opencv2/legacy/legacy.hpp:2791:5: error: ‘KeyPointsFilter’ has not been declared
KeyPointsFilter::runByImageBorder(keypoints, image.size(), BORDER_SIZE);
^
/usr/local/include/opencv2/legacy/legacy.hpp:2791:39: error: ‘keypoints’ was not declared in this scope
KeyPointsFilter::runByImageBorder(keypoints, image.size(), BORDER_SIZE);
^
/usr/local/include/opencv2/legacy/legacy.hpp:2791:56: error: request for member ‘size’ in ‘image’, which is of non-class type ‘const int’
KeyPointsFilter::runByImageBorder(keypoints, image.size(), BORDER_SIZE);
^
/usr/local/include/opencv2/legacy/legacy.hpp:2794:5: error: ‘descriptors’ was not declared in this scope
descriptors.create((int)keypoints.size(), classifier_.classes(), cv::DataType<t>::type);
^
/usr/local/include/opencv2/legacy/legacy.hpp:2801:100: error: there are no arguments to ‘Rect’ that depend on a template parameter, so a declaration of ‘Rect’ must be available [-fpermissive]
IplImage ipl = image( Rect((int)(pt.x - offset), (int)(pt.y - offset), patchSize, patchSize) );
^
/usr/local/include/opencv2/legacy/legacy.hpp:2801:100: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/local/include/opencv2/legacy/legacy.hpp:2802:58: error: expected primary-expression before ‘>’ token
classifier_.getSignature( &ipl, descriptors.ptr<t>((int)i));
^
/usr/local/include/opencv2/legacy/legacy.hpp: At global scope:
/usr/local/include/opencv2/legacy/legacy.hpp:2807:50: error: ‘FileNode’ does not name a type
void CalonderDescriptorExtractor<t>::read( const FileNode& )
^
/usr/local/include/opencv2/legacy/legacy.hpp:2811:45: error: variable or field ‘write’ declared void
void CalonderDescriptorExtractor<t>::write( FileStorage& ) const
^
/usr/local/include/opencv2/legacy/legacy.hpp:2811:45: error: ‘FileStorage’ was not declared in this scope
/usr/local/include/opencv2/legacy/legacy.hpp:2811:45: note: suggested alternative:
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:50:0,
from /usr/local/include/opencv2/legacy/legacy.hpp:45,
from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:
/usr/local/include/opencv2/core/core.hpp:4068:20: note: ‘cv::FileStorage’
class CV_EXPORTS_W FileStorage
^
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:0:
/usr/local/include/opencv2/legacy/legacy.hpp:2811:58: error: expected primary-expression before ‘)’ token
void CalonderDescriptorExtractor<t>::write( FileStorage& ) const
^
/usr/local/include/opencv2/legacy/legacy.hpp: In member function ‘virtual bool CalonderDescriptorExtractor<t>::empty() const’:
/usr/local/include/opencv2/legacy/legacy.hpp:2817:24: error: ‘const class RTreeClassifier’ has no member named ‘trees_’
return classifier_.trees_.empty();
^
/usr/local/include/opencv2/legacy/legacy.hpp: At global scope:
/usr/local/include/opencv2/legacy/legacy.hpp:2825:1: error: expected class-name before ‘{’ token
{
^
/usr/local/include/opencv2/legacy/legacy.hpp: In constructor ‘BruteForceMatcher<distance>::BruteForceMatcher(Distance)’:
/usr/local/include/opencv2/legacy/legacy.hpp:2827:52: error: class ‘BruteForceMatcher<distance>’ does not have any field named ‘BFMatcher’
BruteForceMatcher( Distance d = Distance() ) : BFMatcher(Distance::normType, false) {(void)d;}
^
/usr/local/include/opencv2/legacy/legacy.hpp: At global scope:
/usr/local/include/opencv2/legacy/legacy.hpp:2840:32: error: ‘FileNode’ does not name a type
PlanarObjectDetector(const FileNode& node);
^
/usr/local/include/opencv2/legacy/legacy.hpp:2841:32: error: ‘vector’ does not name a type
PlanarObjectDetector(const vector<mat>& pyr, int _npoints=300,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2841:38: error: expected ‘,’ or ‘...’ before ‘<’ token
PlanarObjectDetector(const vector<mat>& pyr, int _npoints=300,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2849:30: error: ‘vector’ does not name a type
virtual void train(const vector<mat>& pyr, int _npoints=300,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2849:36: error: expected ‘,’ or ‘...’ before ‘<’ token
virtual void train(const vector<mat>& pyr, int _npoints=300,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2856:30: error: ‘vector’ does not name a type
virtual void train(const vector<mat>& pyr, const vector<keypoint>& keypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2856:36: error: expected ‘,’ or ‘...’ before ‘<’ token
virtual void train(const vector<mat>& pyr, const vector<keypoint>& keypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2856:18: error: ‘virtual void PlanarObjectDetector::train(int)’ cannot be overloaded
virtual void train(const vector<mat>& pyr, const vector<keypoint>& keypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2849:18: error: with ‘virtual void PlanarObjectDetector::train(int)’
virtual void train(const vector<mat>& pyr, int _npoints=300,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2863:5: error: ‘Rect’ does not name a type
Rect getModelROI() const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2864:5: error: ‘vector’ does not name a type
vector<keypoint> getModelPoints() const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2865:11: error: ‘LDetector’ does not name a type
const LDetector& getDetector() const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2866:11: error: ‘FernClassifier’ does not name a type
const FernClassifier& getClassifier() const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2869:21: error: ‘FileNode’ does not name a type
void read(const FileNode& node);
^
/usr/local/include/opencv2/legacy/legacy.hpp:2870:16: error: ‘FileStorage’ has not been declared
void write(FileStorage& fs, const String& name=String()) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2870:39: error: ‘String’ does not name a type
void write(FileStorage& fs, const String& name=String()) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2871:27: error: ‘Mat’ does not name a type
bool operator()(const Mat& image, CV_OUT Mat& H, CV_OUT vector<point2f>& corners) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2871:46: error: ‘Mat’ has not been declared
bool operator()(const Mat& image, CV_OUT Mat& H, CV_OUT vector<point2f>& corners) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2871:61: error: ‘vector’ has not been declared
bool operator()(const Mat& image, CV_OUT Mat& H, CV_OUT vector<point2f>& corners) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2871:67: error: expected ‘,’ or ‘...’ before ‘<’ token
bool operator()(const Mat& image, CV_OUT Mat& H, CV_OUT vector<point2f>& corners) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2872:27: error: ‘vector’ does not name a type
bool operator()(const vector<mat>& pyr, const vector<keypoint>& keypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2872:33: error: expected ‘,’ or ‘...’ before ‘<’ token
bool operator()(const vector<mat>& pyr, const vector<keypoint>& keypoints,
^
/usr/local/include/opencv2/legacy/legacy.hpp:2878:5: error: ‘Rect’ does not name a type
Rect modelROI;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2879:5: error: ‘vector’ does not name a type
vector<keypoint> modelPoints;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2880:5: error: ‘LDetector’ does not name a type
LDetector ldetector;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2881:5: error: ‘FernClassifier’ does not name a type
FernClassifier fernClassifier;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2870:59: error: ‘String’ was not declared in this scope
void write(FileStorage& fs, const String& name=String()) const;
^
/usr/local/include/opencv2/legacy/legacy.hpp:2870:59: note: suggested alternative:
In file included from /usr/local/include/opencv2/imgproc/imgproc.hpp:50:0,
from /usr/local/include/opencv2/legacy/legacy.hpp:45,
from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:
/usr/local/include/opencv2/core/core.hpp:87:21: note: ‘cv::String’
typedef std::string String;
^
In file included from /home/vlab/WorkSpaces/ImgReg/components/cimg_tut/main.cpp:7:0:
/usr/local/include/opencv2/legacy/legacy.hpp:2884:1: error: expected declaration before ‘}’ token
}
^
make[2]: * [CMakeFiles/cimg_tut.out.dir/components/cimg_tut/main.cpp.o] Error 1
make[1]: [CMakeFiles/cimg_tut.out.dir/all] Error 2
make[1]: Waiting for unfinished jobs....
Linking CXX executable core.out
[ 83%] Built target core.out
make: [all] Error 2
Failure: Exit code 2 *