mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 11:45:30 +08:00
python DescriptorExtractor.compute now returns filtered keypoints
wrapped StarFeatureDetector and GridAdaptedFeatureDetector
This commit is contained in:
parent
49d33f6109
commit
b679ebc1b4
@ -1483,11 +1483,11 @@ protected:
|
|||||||
MSER mser;
|
MSER mser;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CV_EXPORTS StarFeatureDetector : public FeatureDetector
|
class CV_EXPORTS_W StarFeatureDetector : public FeatureDetector
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
StarFeatureDetector( const CvStarDetectorParams& params=cvStarDetectorParams() );
|
StarFeatureDetector( const CvStarDetectorParams& params=cvStarDetectorParams() );
|
||||||
StarFeatureDetector( int maxSize, int responseThreshold=30, int lineThresholdProjected = 10,
|
CV_WRAP StarFeatureDetector( int maxSize, int responseThreshold=30, int lineThresholdProjected = 10,
|
||||||
int lineThresholdBinarized=8, int suppressNonmaxSize=5 );
|
int lineThresholdBinarized=8, int suppressNonmaxSize=5 );
|
||||||
virtual void read( const FileNode& fn );
|
virtual void read( const FileNode& fn );
|
||||||
virtual void write( FileStorage& fs ) const;
|
virtual void write( FileStorage& fs ) const;
|
||||||
@ -1644,7 +1644,7 @@ protected:
|
|||||||
* Adapts a detector to partition the source image into a grid and detect
|
* Adapts a detector to partition the source image into a grid and detect
|
||||||
* points in each cell.
|
* points in each cell.
|
||||||
*/
|
*/
|
||||||
class CV_EXPORTS GridAdaptedFeatureDetector : public FeatureDetector
|
class CV_EXPORTS_W GridAdaptedFeatureDetector : public FeatureDetector
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/*
|
/*
|
||||||
@ -1654,7 +1654,7 @@ public:
|
|||||||
* gridRows Grid rows count.
|
* gridRows Grid rows count.
|
||||||
* gridCols Grid column count.
|
* gridCols Grid column count.
|
||||||
*/
|
*/
|
||||||
GridAdaptedFeatureDetector( const Ptr<FeatureDetector>& detector, int maxTotalKeypoints=1000,
|
CV_WRAP GridAdaptedFeatureDetector( const Ptr<FeatureDetector>& detector, int maxTotalKeypoints=1000,
|
||||||
int gridRows=4, int gridCols=4 );
|
int gridRows=4, int gridCols=4 );
|
||||||
|
|
||||||
// TODO implement read/write
|
// TODO implement read/write
|
||||||
@ -1846,7 +1846,7 @@ public:
|
|||||||
* keypoints The input keypoints. Keypoints for which a descriptor cannot be computed are removed.
|
* keypoints The input keypoints. Keypoints for which a descriptor cannot be computed are removed.
|
||||||
* descriptors Copmputed descriptors. Row i is the descriptor for keypoint i.
|
* descriptors Copmputed descriptors. Row i is the descriptor for keypoint i.
|
||||||
*/
|
*/
|
||||||
CV_WRAP void compute( const Mat& image, CV_IN_OUT vector<KeyPoint>& keypoints, CV_OUT Mat& descriptors ) const;
|
CV_WRAP void compute( const Mat& image, CV_OUT CV_IN_OUT vector<KeyPoint>& keypoints, CV_OUT Mat& descriptors ) const;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compute the descriptors for a keypoints collection detected in image collection.
|
* Compute the descriptors for a keypoints collection detected in image collection.
|
||||||
|
Loading…
Reference in New Issue
Block a user