Commit e90ae8e9 authored by Christian Richardt's avatar Christian Richardt

Completed wrapping for Python bindings.

parent 7b2c6f83
...@@ -228,14 +228,14 @@ class CV_EXPORTS_W Board { ...@@ -228,14 +228,14 @@ class CV_EXPORTS_W Board {
public: public:
// array of object points of all the marker corners in the board // array of object points of all the marker corners in the board
// each marker include its 4 corners, i.e. for M markers, the size is Mx4 // each marker include its 4 corners, i.e. for M markers, the size is Mx4
std::vector< std::vector< Point3f > > objPoints; CV_PROP std::vector< std::vector< Point3f > > objPoints;
// the dictionary of markers employed for this board // the dictionary of markers employed for this board
Ptr<Dictionary> dictionary; CV_PROP Ptr<Dictionary> dictionary;
// vector of the identifiers of the markers in the board (same size than objPoints) // vector of the identifiers of the markers in the board (same size than objPoints)
// The identifiers refers to the board dictionary // The identifiers refers to the board dictionary
std::vector< int > ids; CV_PROP std::vector< int > ids;
}; };
...@@ -259,7 +259,7 @@ class CV_EXPORTS_W GridBoard : public Board { ...@@ -259,7 +259,7 @@ class CV_EXPORTS_W GridBoard : public Board {
* *
* This function return the image of the GridBoard, ready to be printed. * This function return the image of the GridBoard, ready to be printed.
*/ */
void draw(Size outSize, OutputArray img, int marginSize = 0, int borderBits = 1); CV_WRAP void draw(Size outSize, OutputArray img, int marginSize = 0, int borderBits = 1);
/** /**
...@@ -282,17 +282,17 @@ class CV_EXPORTS_W GridBoard : public Board { ...@@ -282,17 +282,17 @@ class CV_EXPORTS_W GridBoard : public Board {
/** /**
* *
*/ */
Size getGridSize() const { return Size(_markersX, _markersY); } CV_WRAP Size getGridSize() const { return Size(_markersX, _markersY); }
/** /**
* *
*/ */
float getMarkerLength() const { return _markerLength; } CV_WRAP float getMarkerLength() const { return _markerLength; }
/** /**
* *
*/ */
float getMarkerSeparation() const { return _markerSeparation; } CV_WRAP float getMarkerSeparation() const { return _markerSeparation; }
private: private:
......
...@@ -63,11 +63,11 @@ class CV_EXPORTS_W CharucoBoard : public Board { ...@@ -63,11 +63,11 @@ class CV_EXPORTS_W CharucoBoard : public Board {
public: public:
// vector of chessboard 3D corners precalculated // vector of chessboard 3D corners precalculated
std::vector< Point3f > chessboardCorners; CV_PROP std::vector< Point3f > chessboardCorners;
// for each charuco corner, nearest marker id and nearest marker corner id of each marker // for each charuco corner, nearest marker id and nearest marker corner id of each marker
std::vector< std::vector< int > > nearestMarkerIdx; CV_PROP std::vector< std::vector< int > > nearestMarkerIdx;
std::vector< std::vector< int > > nearestMarkerCorners; CV_PROP std::vector< std::vector< int > > nearestMarkerCorners;
/** /**
* @brief Draw a ChArUco board * @brief Draw a ChArUco board
...@@ -80,7 +80,7 @@ class CV_EXPORTS_W CharucoBoard : public Board { ...@@ -80,7 +80,7 @@ class CV_EXPORTS_W CharucoBoard : public Board {
* *
* This function return the image of the ChArUco board, ready to be printed. * This function return the image of the ChArUco board, ready to be printed.
*/ */
void draw(Size outSize, OutputArray img, int marginSize = 0, int borderBits = 1); CV_WRAP void draw(Size outSize, OutputArray img, int marginSize = 0, int borderBits = 1);
/** /**
...@@ -103,17 +103,17 @@ class CV_EXPORTS_W CharucoBoard : public Board { ...@@ -103,17 +103,17 @@ class CV_EXPORTS_W CharucoBoard : public Board {
/** /**
* *
*/ */
Size getChessboardSize() const { return Size(_squaresX, _squaresY); } CV_WRAP Size getChessboardSize() const { return Size(_squaresX, _squaresY); }
/** /**
* *
*/ */
float getSquareLength() const { return _squareLength; } CV_WRAP float getSquareLength() const { return _squareLength; }
/** /**
* *
*/ */
float getMarkerLength() const { return _markerLength; } CV_WRAP float getMarkerLength() const { return _markerLength; }
private: private:
void _getNearestMarkerCorners(); void _getNearestMarkerCorners();
......
...@@ -61,9 +61,9 @@ namespace aruco { ...@@ -61,9 +61,9 @@ namespace aruco {
class CV_EXPORTS_W Dictionary { class CV_EXPORTS_W Dictionary {
public: public:
CV_PROP_RW Mat bytesList; // marker code information CV_PROP Mat bytesList; // marker code information
CV_PROP_RW int markerSize; // number of bits per dimension CV_PROP int markerSize; // number of bits per dimension
CV_PROP_RW int maxCorrectionBits; // maximum number of bits that can be corrected CV_PROP int maxCorrectionBits; // maximum number of bits that can be corrected
/** /**
...@@ -114,7 +114,7 @@ class CV_EXPORTS_W Dictionary { ...@@ -114,7 +114,7 @@ class CV_EXPORTS_W Dictionary {
/** /**
* @brief Draw a canonical marker image * @brief Draw a canonical marker image
*/ */
void drawMarker(int id, int sidePixels, OutputArray _img, int borderBits = 1) const; CV_WRAP void drawMarker(int id, int sidePixels, OutputArray _img, int borderBits = 1) const;
/** /**
......
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