Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

namespaces míght help:

// myfreak.h

#include "opencv/features2d/features2d.hpp"

namespace my {
    struct FREAK {
         ...
    };
}

// myfreak.cpp

#include "opencv/highgui/highgui.hpp"
#include "freak.h"
namespace my {
    // FREAK impl
}

// main.cpp

#include "opencv/highgui/highgui.hpp"
#include "freak.h"

int main() {
   my::FREAK;
   cv::SURF;
}