Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 9eee0a7

Browse files
author
kunkkaliu
committed
add check for ximgproc
1 parent 611fcfe commit 9eee0a7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

cc/core/Mat.cc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#include "Mat.h"
22
#include "MatImgproc.h"
3-
#include "MatXimgproc.h"
43
#include "MatCalib3d.h"
54
#include "MatBindings.h"
65

6+
#ifdef HAVE_XIMGPROC
7+
#include "MatXimgproc.h"
8+
#endif
9+
710
Nan::Persistent<v8::FunctionTemplate> Mat::constructor;
811

912
NAN_MODULE_INIT(Mat::Init) {
@@ -112,8 +115,10 @@ NAN_MODULE_INIT(Mat::Init) {
112115
FF_PROTO_SET_MAT_OPERATIONS(ctor);
113116

114117
MatImgproc::Init(ctor);
115-
MatXimgproc::Init(ctor);
116118
MatCalib3d::Init(ctor);
119+
#ifdef HAVE_XIMGPROC
120+
MatXimgproc::Init(ctor);
121+
#endif
117122

118123
target->Set(Nan::New("Mat").ToLocalChecked(), ctor->GetFunction());
119124
};

0 commit comments

Comments
 (0)