#include "opencv_modules.h" #ifdef HAVE_OPENCV_PHOTO #include "photo.h" #include "photoBindings.h" #include "photoConstants.h" NAN_MODULE_INIT(Photo::Init) { PhotoConstants::Init(target); Nan::SetMethod(target, "fastNlMeansDenoisingColored", FastNlMeansDenoisingColored); Nan::SetMethod(target, "fastNlMeansDenoisingColoredAsync", FastNlMeansDenoisingColoredAsync); Nan::SetMethod(target, "inpaint", Inpaint); Nan::SetMethod(target, "inpaintAsync", InpaintAsync); Nan::SetMethod(target, "seamlessClone", SeamlessClone); Nan::SetMethod(target, "seamlessCloneAsync", SeamlessCloneAsync); }; NAN_METHOD(Photo::FastNlMeansDenoisingColored) { FF::executeSyncBinding( std::make_shared(), "Photo::FastNlMeansDenoisingColored", info ); } NAN_METHOD(Photo::FastNlMeansDenoisingColoredAsync) { FF::executeAsyncBinding( std::make_shared(), "Photo::FastNlMeansDenoisingColoredAsync", info ); } NAN_METHOD(Photo::Inpaint) { FF::executeSyncBinding( std::make_shared(), "Photo::Inpaint", info ); } NAN_METHOD(Photo::InpaintAsync) { FF::executeAsyncBinding( std::make_shared(), "Photo::InpaintAsync", info ); } NAN_METHOD(Photo::SeamlessClone) { FF::syncBinding("Photo", "SeamlessClone", info); } NAN_METHOD(Photo::SeamlessCloneAsync) { FF::asyncBinding("Photo", "SeamlessClone", info); } #endif