mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 13:10:12 +08:00
exposed ORB features to python
This commit is contained in:
parent
66aff45e96
commit
c6705fbe20
@ -269,14 +269,14 @@ public:
|
|||||||
/*!
|
/*!
|
||||||
ORB implementation.
|
ORB implementation.
|
||||||
*/
|
*/
|
||||||
class CV_EXPORTS ORB : public Feature2D
|
class CV_EXPORTS_W ORB : public Feature2D
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// the size of the signature in bytes
|
// the size of the signature in bytes
|
||||||
enum { kBytes = 32, HARRIS_SCORE=0, FAST_SCORE=1 };
|
enum { kBytes = 32, HARRIS_SCORE=0, FAST_SCORE=1 };
|
||||||
|
|
||||||
explicit ORB(int nfeatures = 500, float scaleFactor = 1.2f, int nlevels = 8, int edgeThreshold = 31,
|
CV_WRAP explicit ORB(int nfeatures = 500, float scaleFactor = 1.2f, int nlevels = 8, int edgeThreshold = 31,
|
||||||
int firstLevel = 0, int WTA_K=2, int scoreType=HARRIS_SCORE, int patchSize=31 );
|
int firstLevel = 0, int WTA_K=2, int scoreType=ORB::HARRIS_SCORE, int patchSize=31 );
|
||||||
|
|
||||||
// returns the descriptor size in bytes
|
// returns the descriptor size in bytes
|
||||||
int descriptorSize() const;
|
int descriptorSize() const;
|
||||||
@ -1376,7 +1376,7 @@ struct CV_EXPORTS DrawMatchesFlags
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Draw keypoints.
|
// Draw keypoints.
|
||||||
CV_EXPORTS void drawKeypoints( const Mat& image, const vector<KeyPoint>& keypoints, Mat& outImage,
|
CV_EXPORTS_W void drawKeypoints( const Mat& image, const vector<KeyPoint>& keypoints, CV_OUT Mat& outImage,
|
||||||
const Scalar& color=Scalar::all(-1), int flags=DrawMatchesFlags::DEFAULT );
|
const Scalar& color=Scalar::all(-1), int flags=DrawMatchesFlags::DEFAULT );
|
||||||
|
|
||||||
// Draws matches of keypints from two images on output image.
|
// Draws matches of keypints from two images on output image.
|
||||||
|
Loading…
Reference in New Issue
Block a user