Skip to content

Commit ec5e4c3

Browse files
authored
Merge pull request #3829 from abbaselmas:patch-1
getDefaultName() added #3829 all other contrib feature detectors have this function but TBMR
1 parent ec9d892 commit ec5e4c3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

modules/xfeatures2d/include/opencv2/xfeatures2d.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -1209,6 +1209,8 @@ class CV_EXPORTS_W TBMR : public AffineFeature2D
12091209
CV_WRAP virtual float getScaleFactor() const = 0;
12101210
CV_WRAP virtual void setNScales(int n_scales) = 0;
12111211
CV_WRAP virtual int getNScales() const = 0;
1212+
1213+
CV_WRAP String getDefaultName() const CV_OVERRIDE;
12121214
};
12131215

12141216
/** @brief Estimates cornerness for prespecified KeyPoints using the FAST algorithm

modules/xfeatures2d/src/tbmr.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,11 @@ void TBMR_Impl::detectAndCompute(
573573
useProvidedKeypoints);
574574
}
575575

576+
String TBMR::getDefaultName() const
577+
{
578+
return (Feature2D::getDefaultName() + ".TBMR");
579+
}
580+
576581
Ptr<TBMR> TBMR::create(int _min_area, float _max_area_relative, float _scale,
577582
int _n_scale)
578583
{
@@ -581,4 +586,4 @@ Ptr<TBMR> TBMR::create(int _min_area, float _max_area_relative, float _scale,
581586
}
582587

583588
} // namespace xfeatures2d
584-
} // namespace cv
589+
} // namespace cv

0 commit comments

Comments
 (0)