Skip to content

Commit 090b600

Browse files
added missing directives
1 parent 0bd1995 commit 090b600

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

cc/core/Mat.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,7 @@ NAN_METHOD(Mat::MeanStdDevAsync) {
775775
);
776776
}
777777

778+
#if CV_VERSION_MINOR > 1
778779
NAN_METHOD(Mat::Rotate) {
779780
FF::SyncBinding(
780781
std::make_shared<MatBindings::RotateWorker>(Mat::Converter::unwrap(info.This())),
@@ -790,3 +791,4 @@ NAN_METHOD(Mat::RotateAsync) {
790791
info
791792
);
792793
}
794+
#endif

cc/modules/calib3d/calib3d.cc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ NAN_METHOD(Calib3d::EstimateAffine3DAsync) {
378378
);
379379
}
380380

381+
#if CV_VERSION_MINOR > 0
382+
381383
NAN_METHOD(Calib3d::SampsonDistance) {
382384
FF::SyncBinding(
383385
std::make_shared<Calib3dBindings::SampsonDistanceWorker>(),
@@ -410,6 +412,10 @@ NAN_METHOD(Calib3d::CalibrateCameraAsync) {
410412
);
411413
}
412414

415+
#endif
416+
417+
#if CV_VERSION_MINOR > 1
418+
413419
NAN_METHOD(Calib3d::CalibrateCameraExtended) {
414420
FF::SyncBinding(
415421
std::make_shared<Calib3dBindings::CalibrateCameraExtendedWorker>(),
@@ -457,6 +463,9 @@ NAN_METHOD(Calib3d::EstimateAffinePartial2DAsync) {
457463
info
458464
);
459465
}
466+
#endif
467+
468+
#if CV_VERSION_MINOR > 2
460469

461470
NAN_METHOD(Calib3d::SolveP3P) {
462471
FF::SyncBinding(
@@ -473,3 +482,5 @@ NAN_METHOD(Calib3d::SolveP3PAsync) {
473482
info
474483
);
475484
}
485+
486+
#endif

0 commit comments

Comments
 (0)