Skip to content

Commit 79edb0f

Browse files
committed
reg: classes are partially wrappen in python
1 parent 6983774 commit 79edb0f

21 files changed

+72
-72
lines changed

modules/reg/include/opencv2/reg/map.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ namespace reg {
121121
122122
The class is only used to define the common interface for any possible map.
123123
*/
124-
class CV_EXPORTS Map
124+
class CV_EXPORTS_W Map
125125
{
126126
public:
127127
/*!
128128
* Virtual destructor
129129
*/
130-
virtual ~Map(void);
130+
virtual ~Map();
131131

132132
/*!
133133
* Warps image to a new coordinate frame. The calculation is img2(x)=img1(T^{-1}(x)), as we
@@ -136,7 +136,7 @@ class CV_EXPORTS Map
136136
* \param[in] img1 Original image
137137
* \param[out] img2 Warped image
138138
*/
139-
virtual void warp(InputArray img1, OutputArray img2) const;
139+
CV_WRAP virtual void warp(InputArray img1, OutputArray img2) const;
140140

141141
/*!
142142
* Warps image to a new coordinate frame. The calculation is img2(x)=img1(T(x)), so in fact
@@ -145,13 +145,13 @@ class CV_EXPORTS Map
145145
* \param[in] img1 Original image
146146
* \param[out] img2 Warped image
147147
*/
148-
virtual void inverseWarp(InputArray img1, OutputArray img2) const = 0;
148+
CV_WRAP virtual void inverseWarp(InputArray img1, OutputArray img2) const = 0;
149149

150150
/*!
151151
* Calculates the inverse map
152152
* \return Inverse map
153153
*/
154-
virtual cv::Ptr<Map> inverseMap(void) const = 0;
154+
CV_WRAP virtual cv::Ptr<Map> inverseMap() const = 0;
155155

156156
/*!
157157
* Changes the map composing the current transformation with the one provided in the call.
@@ -165,7 +165,7 @@ class CV_EXPORTS Map
165165
* by that factor.
166166
* \param[in] factor Expansion if bigger than one, compression if smaller than one
167167
*/
168-
virtual void scale(double factor) = 0;
168+
CV_WRAP virtual void scale(double factor) = 0;
169169
};
170170

171171
//! @}

modules/reg/include/opencv2/reg/mapaffine.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ namespace reg {
4949
/*!
5050
* Defines an affine transformation
5151
*/
52-
class CV_EXPORTS MapAffine : public Map
52+
class CV_EXPORTS_W MapAffine : public Map
5353
{
5454
public:
5555
/*!
5656
* Default constructor builds an identity map
5757
*/
58-
MapAffine(void);
58+
CV_WRAP MapAffine();
5959

6060
/*!
6161
* Constructor providing explicit values
@@ -67,15 +67,15 @@ class CV_EXPORTS MapAffine : public Map
6767
/*!
6868
* Destructor
6969
*/
70-
~MapAffine(void);
70+
~MapAffine();
7171

72-
void inverseWarp(InputArray img1, OutputArray img2) const;
72+
CV_WRAP void inverseWarp(InputArray img1, OutputArray img2) const;
7373

74-
cv::Ptr<Map> inverseMap(void) const;
74+
CV_WRAP cv::Ptr<Map> inverseMap() const;
7575

7676
void compose(const Map& map);
7777

78-
void scale(double factor);
78+
CV_WRAP void scale(double factor);
7979

8080
/*!
8181
* Return linear part of the affine transformation

modules/reg/include/opencv2/reg/mapper.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace reg {
5151
5252
The class is only used to define the common interface for any possible mapping algorithm.
5353
*/
54-
class CV_EXPORTS Mapper
54+
class CV_EXPORTS_W Mapper
5555
{
5656
public:
5757
virtual ~Mapper(void) {}
@@ -69,7 +69,7 @@ class CV_EXPORTS Mapper
6969
* Returns a map compatible with the Mapper class
7070
* \return Pointer to identity Map
7171
*/
72-
virtual cv::Ptr<Map> getMap(void) const = 0;
72+
CV_WRAP virtual cv::Ptr<Map> getMap() const = 0;
7373

7474
protected:
7575
/*

modules/reg/include/opencv2/reg/mappergradaffine.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ namespace reg {
4949
/*!
5050
* Mapper for affine motion
5151
*/
52-
class CV_EXPORTS MapperGradAffine: public Mapper
52+
class CV_EXPORTS_W MapperGradAffine: public Mapper
5353
{
5454
public:
55-
MapperGradAffine(void);
55+
CV_WRAP MapperGradAffine();
5656
~MapperGradAffine(void);
5757

5858
virtual void calculate(InputArray img1, InputArray img2, cv::Ptr<Map>& res) const;
5959

60-
cv::Ptr<Map> getMap(void) const;
60+
CV_WRAP cv::Ptr<Map> getMap() const;
6161
};
6262

6363
//! @}

modules/reg/include/opencv2/reg/mappergradeuclid.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ namespace reg {
4949
/*!
5050
* Mapper for euclidean motion: rotation plus shift
5151
*/
52-
class CV_EXPORTS MapperGradEuclid: public Mapper
52+
class CV_EXPORTS_W MapperGradEuclid: public Mapper
5353
{
5454
public:
55-
MapperGradEuclid(void);
56-
~MapperGradEuclid(void);
55+
CV_WRAP MapperGradEuclid();
56+
~MapperGradEuclid();
5757

5858
virtual void calculate(InputArray img1, InputArray img2, cv::Ptr<Map>& res) const;
5959

60-
cv::Ptr<Map> getMap(void) const;
60+
CV_WRAP cv::Ptr<Map> getMap() const;
6161
};
6262

6363
//! @}

modules/reg/include/opencv2/reg/mappergradproj.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ namespace reg {
4949
/*!
5050
* Gradient mapper for a projective transformation
5151
*/
52-
class CV_EXPORTS MapperGradProj: public Mapper
52+
class CV_EXPORTS_W MapperGradProj: public Mapper
5353
{
5454
public:
55-
MapperGradProj(void);
56-
~MapperGradProj(void);
55+
CV_WRAP MapperGradProj();
56+
~MapperGradProj();
5757

5858
virtual void calculate(InputArray img1, InputArray img2, cv::Ptr<Map>& res) const;
5959

60-
cv::Ptr<Map> getMap(void) const;
60+
CV_WRAP cv::Ptr<Map> getMap() const;
6161
};
6262

6363
//! @}

modules/reg/include/opencv2/reg/mappergradshift.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ namespace reg {
4949
/*!
5050
* Gradient mapper for a translation
5151
*/
52-
class CV_EXPORTS MapperGradShift: public Mapper
52+
class CV_EXPORTS_W MapperGradShift: public Mapper
5353
{
5454
public:
55-
MapperGradShift(void);
56-
virtual ~MapperGradShift(void);
55+
CV_WRAP MapperGradShift();
56+
virtual ~MapperGradShift();
5757

5858
virtual void calculate(InputArray img1, InputArray img2, cv::Ptr<Map>& res) const;
5959

60-
cv::Ptr<Map> getMap(void) const;
60+
CV_WRAP cv::Ptr<Map> getMap() const;
6161
};
6262

6363
//! @}

modules/reg/include/opencv2/reg/mappergradsimilar.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ namespace reg {
4949
/*!
5050
* Calculates a similarity transformation between to images (scale, rotation, and shift)
5151
*/
52-
class CV_EXPORTS MapperGradSimilar: public Mapper
52+
class CV_EXPORTS_W MapperGradSimilar: public Mapper
5353
{
5454
public:
55-
MapperGradSimilar(void);
56-
~MapperGradSimilar(void);
55+
CV_WRAP MapperGradSimilar();
56+
~MapperGradSimilar();
5757

5858
virtual void calculate(InputArray img1, InputArray img2, cv::Ptr<Map>& res) const;
5959

60-
cv::Ptr<Map> getMap(void) const;
60+
CV_WRAP cv::Ptr<Map> getMap() const;
6161
};
6262

6363
//! @}

modules/reg/include/opencv2/reg/mapperpyramid.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace reg {
5050
/*!
5151
* Calculates a map using a gaussian pyramid
5252
*/
53-
class CV_EXPORTS MapperPyramid: public Mapper
53+
class CV_EXPORTS_W MapperPyramid: public Mapper
5454
{
5555
public:
5656
/*
@@ -61,10 +61,10 @@ class CV_EXPORTS MapperPyramid: public Mapper
6161

6262
void calculate(InputArray img1, InputArray img2, cv::Ptr<Map>& res) const;
6363

64-
cv::Ptr<Map> getMap(void) const;
64+
CV_WRAP cv::Ptr<Map> getMap() const;
6565

66-
unsigned numLev_; /*!< Number of levels of the pyramid */
67-
unsigned numIterPerScale_; /*!< Number of iterations at a given scale of the pyramid */
66+
CV_WRAP unsigned numLev_; /*!< Number of levels of the pyramid */
67+
CV_WRAP unsigned numIterPerScale_; /*!< Number of iterations at a given scale of the pyramid */
6868

6969
private:
7070
MapperPyramid& operator=(const MapperPyramid&);

modules/reg/include/opencv2/reg/mapprojec.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ namespace reg {
5050
/*!
5151
* Defines an transformation that consists on a projective transformation
5252
*/
53-
class CV_EXPORTS MapProjec : public Map
53+
class CV_EXPORTS_W MapProjec : public Map
5454
{
5555
public:
5656
/*!
5757
* Default constructor builds an identity map
5858
*/
59-
MapProjec(void);
59+
CV_WRAP MapProjec();
6060

6161
/*!
6262
* Constructor providing explicit values
@@ -67,15 +67,15 @@ class CV_EXPORTS MapProjec : public Map
6767
/*!
6868
* Destructor
6969
*/
70-
~MapProjec(void);
70+
~MapProjec();
7171

72-
void inverseWarp(InputArray img1, OutputArray img2) const;
72+
CV_WRAP void inverseWarp(InputArray img1, OutputArray img2) const;
7373

74-
cv::Ptr<Map> inverseMap(void) const;
74+
CV_WRAP cv::Ptr<Map> inverseMap() const;
7575

7676
void compose(const Map& map);
7777

78-
void scale(double factor);
78+
CV_WRAP void scale(double factor);
7979

8080
/*!
8181
* Returns projection matrix

0 commit comments

Comments
 (0)