Internal change
PiperOrigin-RevId: 532611846
This commit is contained in:
parent
5af496201b
commit
4f8520af10
|
@ -2096,12 +2096,6 @@ bool RegionFlowComputation::GainCorrectFrame(const cv::Mat& reference_frame,
|
||||||
void RegionFlowComputation::WideBaselineMatchFeatures(
|
void RegionFlowComputation::WideBaselineMatchFeatures(
|
||||||
FrameTrackingData* from_data_ptr, FrameTrackingData* to_data_ptr,
|
FrameTrackingData* from_data_ptr, FrameTrackingData* to_data_ptr,
|
||||||
TrackedFeatureList* results) {
|
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();
|
results->clear();
|
||||||
|
|
||||||
const auto& frame1 = from_data_ptr->frame;
|
const auto& frame1 = from_data_ptr->frame;
|
||||||
|
@ -2174,8 +2168,6 @@ void RegionFlowComputation::WideBaselineMatchFeatures(
|
||||||
results->push_back(tracked_feature);
|
results->push_back(tracked_feature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // (defined(__ANDROID__) || defined(__APPLE__) ||
|
|
||||||
// defined(__EMSCRIPTEN__)) && !defined(CV_WRAPPER_3X)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RegionFlowComputation::RemoveAbsentFeatures(
|
void RegionFlowComputation::RemoveAbsentFeatures(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user