Commit 06244118 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #9624 from nilaykumarpatel:Feature2d_getDefaultName

parents 63584bc4 68578704
...@@ -206,6 +206,7 @@ public: ...@@ -206,6 +206,7 @@ public:
//! Return true if detector object is empty //! Return true if detector object is empty
CV_WRAP virtual bool empty() const; CV_WRAP virtual bool empty() const;
CV_WRAP virtual String getDefaultName() const;
}; };
/** Feature detectors in OpenCV have wrappers with a common interface that enables you to easily switch /** Feature detectors in OpenCV have wrappers with a common interface that enables you to easily switch
...@@ -267,6 +268,7 @@ public: ...@@ -267,6 +268,7 @@ public:
CV_WRAP static Ptr<BRISK> create(int thresh, int octaves, const std::vector<float> &radiusList, CV_WRAP static Ptr<BRISK> create(int thresh, int octaves, const std::vector<float> &radiusList,
const std::vector<int> &numberList, float dMax=5.85f, float dMin=8.2f, const std::vector<int> &numberList, float dMax=5.85f, float dMin=8.2f,
const std::vector<int>& indexChange=std::vector<int>()); const std::vector<int>& indexChange=std::vector<int>());
CV_WRAP virtual String getDefaultName() const;
}; };
/** @brief Class implementing the ORB (*oriented BRIEF*) keypoint detector and descriptor extractor /** @brief Class implementing the ORB (*oriented BRIEF*) keypoint detector and descriptor extractor
...@@ -340,6 +342,7 @@ public: ...@@ -340,6 +342,7 @@ public:
CV_WRAP virtual void setFastThreshold(int fastThreshold) = 0; CV_WRAP virtual void setFastThreshold(int fastThreshold) = 0;
CV_WRAP virtual int getFastThreshold() const = 0; CV_WRAP virtual int getFastThreshold() const = 0;
CV_WRAP virtual String getDefaultName() const;
}; };
/** @brief Maximally stable extremal region extractor /** @brief Maximally stable extremal region extractor
...@@ -399,6 +402,7 @@ public: ...@@ -399,6 +402,7 @@ public:
CV_WRAP virtual void setPass2Only(bool f) = 0; CV_WRAP virtual void setPass2Only(bool f) = 0;
CV_WRAP virtual bool getPass2Only() const = 0; CV_WRAP virtual bool getPass2Only() const = 0;
CV_WRAP virtual String getDefaultName() const;
}; };
/** @overload */ /** @overload */
...@@ -454,6 +458,7 @@ public: ...@@ -454,6 +458,7 @@ public:
CV_WRAP virtual void setType(int type) = 0; CV_WRAP virtual void setType(int type) = 0;
CV_WRAP virtual int getType() const = 0; CV_WRAP virtual int getType() const = 0;
CV_WRAP virtual String getDefaultName() const;
}; };
/** @overload */ /** @overload */
...@@ -508,6 +513,7 @@ public: ...@@ -508,6 +513,7 @@ public:
CV_WRAP virtual void setType(int type) = 0; CV_WRAP virtual void setType(int type) = 0;
CV_WRAP virtual int getType() const = 0; CV_WRAP virtual int getType() const = 0;
CV_WRAP virtual String getDefaultName() const;
}; };
/** @brief Wrapping class for feature detection using the goodFeaturesToTrack function. : /** @brief Wrapping class for feature detection using the goodFeaturesToTrack function. :
...@@ -534,6 +540,7 @@ public: ...@@ -534,6 +540,7 @@ public:
CV_WRAP virtual void setK(double k) = 0; CV_WRAP virtual void setK(double k) = 0;
CV_WRAP virtual double getK() const = 0; CV_WRAP virtual double getK() const = 0;
CV_WRAP virtual String getDefaultName() const;
}; };
/** @brief Class for extracting blobs from an image. : /** @brief Class for extracting blobs from an image. :
...@@ -600,6 +607,7 @@ public: ...@@ -600,6 +607,7 @@ public:
CV_WRAP static Ptr<SimpleBlobDetector> CV_WRAP static Ptr<SimpleBlobDetector>
create(const SimpleBlobDetector::Params &parameters = SimpleBlobDetector::Params()); create(const SimpleBlobDetector::Params &parameters = SimpleBlobDetector::Params());
CV_WRAP virtual String getDefaultName() const;
}; };
//! @} features2d_main //! @} features2d_main
...@@ -656,6 +664,7 @@ public: ...@@ -656,6 +664,7 @@ public:
CV_WRAP virtual void setDiffusivity(int diff) = 0; CV_WRAP virtual void setDiffusivity(int diff) = 0;
CV_WRAP virtual int getDiffusivity() const = 0; CV_WRAP virtual int getDiffusivity() const = 0;
CV_WRAP virtual String getDefaultName() const;
}; };
/** @brief Class implementing the AKAZE keypoint detector and descriptor extractor, described in @cite ANB13. /** @brief Class implementing the AKAZE keypoint detector and descriptor extractor, described in @cite ANB13.
...@@ -723,6 +732,7 @@ public: ...@@ -723,6 +732,7 @@ public:
CV_WRAP virtual void setDiffusivity(int diff) = 0; CV_WRAP virtual void setDiffusivity(int diff) = 0;
CV_WRAP virtual int getDiffusivity() const = 0; CV_WRAP virtual int getDiffusivity() const = 0;
CV_WRAP virtual String getDefaultName() const;
}; };
//! @} features2d_main //! @} features2d_main
......
...@@ -8169,4 +8169,9 @@ void AGAST(InputArray _img, std::vector<KeyPoint>& keypoints, int threshold, boo ...@@ -8169,4 +8169,9 @@ void AGAST(InputArray _img, std::vector<KeyPoint>& keypoints, int threshold, boo
} }
} }
String AgastFeatureDetector::getDefaultName() const
{
return(Feature2D::getDefaultName() + ".AgastFeatureDetector");
}
} // END NAMESPACE CV } // END NAMESPACE CV
...@@ -244,4 +244,10 @@ namespace cv ...@@ -244,4 +244,10 @@ namespace cv
return makePtr<AKAZE_Impl>(descriptor_type, descriptor_size, descriptor_channels, return makePtr<AKAZE_Impl>(descriptor_type, descriptor_size, descriptor_channels,
threshold, octaves, sublevels, diffusivity); threshold, octaves, sublevels, diffusivity);
} }
String AKAZE::getDefaultName() const
{
return (Feature2D::getDefaultName() + ".AKAZE");
}
} }
...@@ -379,4 +379,9 @@ Ptr<SimpleBlobDetector> SimpleBlobDetector::create(const SimpleBlobDetector::Par ...@@ -379,4 +379,9 @@ Ptr<SimpleBlobDetector> SimpleBlobDetector::create(const SimpleBlobDetector::Par
return makePtr<SimpleBlobDetectorImpl>(params); return makePtr<SimpleBlobDetectorImpl>(params);
} }
String SimpleBlobDetector::getDefaultName() const
{
return (Feature2D::getDefaultName() + ".SimpleBlobDetector");
}
} }
...@@ -2345,4 +2345,9 @@ Ptr<BRISK> BRISK::create(int thresh, int octaves, const std::vector<float> &radi ...@@ -2345,4 +2345,9 @@ Ptr<BRISK> BRISK::create(int thresh, int octaves, const std::vector<float> &radi
return makePtr<BRISK_Impl>(thresh, octaves, radiusList, numberList, dMax, dMin, indexChange); return makePtr<BRISK_Impl>(thresh, octaves, radiusList, numberList, dMax, dMin, indexChange);
} }
String BRISK::getDefaultName() const
{
return (Feature2D::getDefaultName() + ".BRISK");
}
} }
...@@ -512,5 +512,9 @@ Ptr<FastFeatureDetector> FastFeatureDetector::create( int threshold, bool nonmax ...@@ -512,5 +512,9 @@ Ptr<FastFeatureDetector> FastFeatureDetector::create( int threshold, bool nonmax
return makePtr<FastFeatureDetector_Impl>(threshold, nonmaxSuppression, type); return makePtr<FastFeatureDetector_Impl>(threshold, nonmaxSuppression, type);
} }
String FastFeatureDetector::getDefaultName() const
{
return (Feature2D::getDefaultName() + ".FastFeatureDetector");
}
} }
...@@ -196,4 +196,9 @@ bool Feature2D::empty() const ...@@ -196,4 +196,9 @@ bool Feature2D::empty() const
return true; return true;
} }
String Feature2D::getDefaultName() const
{
return "Feature2D";
}
} }
...@@ -125,4 +125,9 @@ Ptr<GFTTDetector> GFTTDetector::create( int _nfeatures, double _qualityLevel, ...@@ -125,4 +125,9 @@ Ptr<GFTTDetector> GFTTDetector::create( int _nfeatures, double _qualityLevel,
_minDistance, _blockSize, _useHarrisDetector, _k); _minDistance, _blockSize, _useHarrisDetector, _k);
} }
String GFTTDetector::getDefaultName() const
{
return (Feature2D::getDefaultName() + ".GFTTDetector");
}
} }
...@@ -196,4 +196,10 @@ namespace cv ...@@ -196,4 +196,10 @@ namespace cv
{ {
return makePtr<KAZE_Impl>(extended, upright, threshold, octaves, sublevels, diffusivity); return makePtr<KAZE_Impl>(extended, upright, threshold, octaves, sublevels, diffusivity);
} }
String KAZE::getDefaultName() const
{
return (Feature2D::getDefaultName() + ".KAZE");
}
} }
...@@ -1109,4 +1109,9 @@ Ptr<MSER> MSER::create( int _delta, int _min_area, int _max_area, ...@@ -1109,4 +1109,9 @@ Ptr<MSER> MSER::create( int _delta, int _min_area, int _max_area,
_min_margin, _edge_blur_size)); _min_margin, _edge_blur_size));
} }
String MSER::getDefaultName() const
{
return (Feature2D::getDefaultName() + ".MSER");
}
} }
...@@ -1198,4 +1198,9 @@ Ptr<ORB> ORB::create(int nfeatures, float scaleFactor, int nlevels, int edgeThre ...@@ -1198,4 +1198,9 @@ Ptr<ORB> ORB::create(int nfeatures, float scaleFactor, int nlevels, int edgeThre
firstLevel, wta_k, scoreType, patchSize, fastThreshold); firstLevel, wta_k, scoreType, patchSize, fastThreshold);
} }
String ORB::getDefaultName() const
{
return (Feature2D::getDefaultName() + ".ORB");
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment