more compilation

pull/265/head
Anatoly Baksheev 10 years ago
parent 62feeec31d
commit 42b36fb346
  1. 2
      modules/dnn/CMakeLists.txt
  2. 4
      modules/dnn/include/opencv2/dnn.hpp
  3. 11
      modules/dnn/include/opencv2/dnn/dnn.inl.hpp

@ -14,6 +14,8 @@ else()
message(FATAL_ERROR "Could not find PROTOBUF Compiler") message(FATAL_ERROR "Could not find PROTOBUF Compiler")
endif() endif()
include_directories(src/caffe)
file(GLOB PROTO_FILES src/*.proto) file(GLOB PROTO_FILES src/*.proto)
PROTOBUF_GENERATE_CPP(PROTO_HDRS PROTO_SRCS ${PROTO_FILES}) PROTOBUF_GENERATE_CPP(PROTO_HDRS PROTO_SRCS ${PROTO_FILES})

@ -108,7 +108,7 @@ namespace dnn
{ {
public: public:
CV_EXPORTS static Ptr<NetConfiguration> create(); static Ptr<NetConfiguration> create();
int addLayer(const String &name, const String &type); int addLayer(const String &name, const String &type);
@ -145,7 +145,7 @@ namespace dnn
{ {
public: public:
CV_EXPORTS static Ptr<Net> create(Ptr<NetConfiguration> config); static Ptr<Net> create(Ptr<NetConfiguration> config);
virtual ~Net() = 0; virtual ~Net() = 0;

@ -7,26 +7,23 @@ namespace cv
{ {
namespace dnn namespace dnn
{ {
inline inline Mat& Blob::getMatRef()
Mat& Blob::getMatRef()
{ {
return m; return m;
} }
inline inline const Mat& Blob::getMatRef() const
const Mat& Blob::getMatRef() const
{ {
return m; return m;
} }
inline inline Mat Blob::getMat()
Mat Blob::getMat()
{ {
return m; return m;
} }
Mat Blob::getMat(int num, int channel) inline Mat Blob::getMat(int num, int channel)
{ {
CV_Assert(false); CV_Assert(false);
return Mat(); return Mat();

Loading…
Cancel
Save