#ifdef HAVE_XIMGPROC

#include "ximgproc.h"
#include "SuperpixelSEEDS.h"
#include "SuperpixelSLIC.h"
#include "SuperpixelLSC.h"

NAN_MODULE_INIT(XImgproc::Init) {
	SuperpixelSEEDS::Init(target);
	SuperpixelSLIC::Init(target);
	SuperpixelLSC::Init(target);
}

#endif // HAVE_XIMGPROC
#ifdef HAVE_XIMGPROC

#include "ximgproc.h"
#include "SuperpixelSEEDS.h"
#include "SuperpixelSLIC.h"
#include "SuperpixelLSC.h"

NAN_MODULE_INIT(XImgproc::Init) {
	SuperpixelSEEDS::Init(target);
#if OPENCV_MINOR_VERSION > 0
	SuperpixelSLIC::Init(target);
	SuperpixelLSC::Init(target);
#endif
}

#endif // HAVE_XIMGPROC
Check for opencv version before using SuperpixelLSC/SLIC
Check for opencv version before using SuperpixelLSC/SLIC
