Internal change

PiperOrigin-RevId: 532611846
This commit is contained in:
vrabaud 2023-05-16 16:46:39 -07:00 committed by Copybara-Service
parent 5af496201b
commit 4f8520af10

View File

@ -2096,12 +2096,6 @@ bool RegionFlowComputation::GainCorrectFrame(const cv::Mat& reference_frame,
void RegionFlowComputation::WideBaselineMatchFeatures(
FrameTrackingData* from_data_ptr, FrameTrackingData* to_data_ptr,
TrackedFeatureList* results) {
#if (defined(__ANDROID__) || defined(__APPLE__) || defined(__EMSCRIPTEN__)) && \
!defined(CV_WRAPPER_3X)
LOG(FATAL) << "Supported on only with OpenCV 3.0. "
<< "Use bazel build flag : --define CV_WRAPPER=3X";
#else // (defined(__ANDROID__) || defined(__APPLE__) ||
// defined(__EMSCRIPTEN__)) && !defined(CV_WRAPPER_3X)
results->clear();
const auto& frame1 = from_data_ptr->frame;
@ -2174,8 +2168,6 @@ void RegionFlowComputation::WideBaselineMatchFeatures(
results->push_back(tracked_feature);
}
}
#endif // (defined(__ANDROID__) || defined(__APPLE__) ||
// defined(__EMSCRIPTEN__)) && !defined(CV_WRAPPER_3X)
}
void RegionFlowComputation::RemoveAbsentFeatures(