Skip to content

Commit

Permalink
Merge pull request #3829 from abbaselmas:patch-1
Browse files Browse the repository at this point in the history
getDefaultName() added #3829

all other contrib feature detectors have this function but TBMR
  • Loading branch information
abbaselmas authored Nov 26, 2024
1 parent ec9d892 commit ec5e4c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions modules/xfeatures2d/include/opencv2/xfeatures2d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,8 @@ class CV_EXPORTS_W TBMR : public AffineFeature2D
CV_WRAP virtual float getScaleFactor() const = 0;
CV_WRAP virtual void setNScales(int n_scales) = 0;
CV_WRAP virtual int getNScales() const = 0;

CV_WRAP String getDefaultName() const CV_OVERRIDE;
};

/** @brief Estimates cornerness for prespecified KeyPoints using the FAST algorithm
Expand Down
7 changes: 6 additions & 1 deletion modules/xfeatures2d/src/tbmr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,11 @@ void TBMR_Impl::detectAndCompute(
useProvidedKeypoints);
}

String TBMR::getDefaultName() const
{
return (Feature2D::getDefaultName() + ".TBMR");
}

Ptr<TBMR> TBMR::create(int _min_area, float _max_area_relative, float _scale,
int _n_scale)
{
Expand All @@ -581,4 +586,4 @@ Ptr<TBMR> TBMR::create(int _min_area, float _max_area_relative, float _scale,
}

} // namespace xfeatures2d
} // namespace cv
} // namespace cv

0 comments on commit ec5e4c3

Please sign in to comment.