mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Instrumentation for OpenCV API regions and IPP functions;
This commit is contained in:
@@ -144,6 +144,8 @@ private:
|
||||
|
||||
void CpuMatcher::match(const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo& matches_info)
|
||||
{
|
||||
CV_INSTRUMENT_REGION()
|
||||
|
||||
CV_Assert(features1.descriptors.type() == features2.descriptors.type());
|
||||
CV_Assert(features2.descriptors.depth() == CV_8U || features2.descriptors.depth() == CV_32F);
|
||||
|
||||
@@ -212,6 +214,8 @@ void CpuMatcher::match(const ImageFeatures &features1, const ImageFeatures &feat
|
||||
#ifdef HAVE_OPENCV_CUDAFEATURES2D
|
||||
void GpuMatcher::match(const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo& matches_info)
|
||||
{
|
||||
CV_INSTRUMENT_REGION()
|
||||
|
||||
matches_info.matches.clear();
|
||||
|
||||
ensureSizeIsEnough(features1.descriptors.size(), features1.descriptors.type(), descriptors1_);
|
||||
@@ -581,6 +585,8 @@ BestOf2NearestMatcher::BestOf2NearestMatcher(bool try_use_gpu, float match_conf,
|
||||
void BestOf2NearestMatcher::match(const ImageFeatures &features1, const ImageFeatures &features2,
|
||||
MatchesInfo &matches_info)
|
||||
{
|
||||
CV_INSTRUMENT_REGION()
|
||||
|
||||
(*impl_)(features1, features2, matches_info);
|
||||
|
||||
// Check if it makes sense to find homography
|
||||
|
||||
Reference in New Issue
Block a user