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

Commit 45fad20

Browse files
committed
Check for opencv version before using SuperpixelLSC/SLIC
1 parent faf93c3 commit 45fad20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cc/modules/ximgproc/ximgproc.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77

88
NAN_MODULE_INIT(XImgproc::Init) {
99
SuperpixelSEEDS::Init(target);
10+
#if OPENCV_MINOR_VERSION > 0
1011
SuperpixelSLIC::Init(target);
1112
SuperpixelLSC::Init(target);
13+
#endif
1214
}
1315

1416
#endif // HAVE_XIMGPROC

0 commit comments

Comments
 (0)