Skip to content

Commit 10d567f

Browse files
committed
Merge pull request #1459 from alalek:ximgproc_rename_global_FD_functions
2 parents ab51fb0 + e8c03fc commit 10d567f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

modules/ximgproc/include/opencv2/ximgproc/fourier_descriptors.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ namespace ximgproc {
9494
* @param fdContour true src are Fourier Descriptors. fdContour false src is a contour
9595
*
9696
*/
97-
CV_EXPORTS_W void transform(InputArray src, InputArray t,OutputArray dst, bool fdContour=true);
97+
CV_EXPORTS_W void transformFD(InputArray src, InputArray t,OutputArray dst, bool fdContour=true);
9898
/**
9999
* @brief Contour sampling .
100100
*
@@ -106,12 +106,12 @@ namespace ximgproc {
106106
CV_EXPORTS_W void contourSampling(InputArray src, OutputArray out, int nbElt);
107107

108108
/**
109-
* @brief create
110-
109+
* @brief create ContourFitting algorithm object
110+
*
111111
* @param ctr number of Fourier descriptors equal to number of contour points after resampling.
112112
* @param fd Contour defining second shape (Target).
113113
*/
114-
CV_EXPORTS_W Ptr<ContourFitting> create(int ctr = 1024, int fd = 16);
114+
CV_EXPORTS_W Ptr<ContourFitting> createContourFitting(int ctr = 1024, int fd = 16);
115115

116116
//! @} ximgproc_fourier
117117
}

modules/ximgproc/samples/fourier_descriptors_demo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int main(void)
6262
{
6363
Mat r = getRotationMatrix2D(Point(p.xg, p.yg), p.angle, 10.0/ p.scale10);
6464
ctrNoisy= NoisyPolygon(ctrRef,static_cast<double>(p.levelNoise));
65-
transform(ctrNoisy, ctrNoisyRotate,r);
65+
cv::transform(ctrNoisy, ctrNoisyRotate, r);
6666
ctrNoisyRotateShift.clear();
6767
for (int i=0;i<static_cast<int>(ctrNoisy.size());i++)
6868
ctrNoisyRotateShift.push_back(ctrNoisyRotate[(i+(p.origin*ctrNoisy.size())/100)% ctrNoisy.size()]);
@@ -112,7 +112,7 @@ int main(void)
112112
cout << "Angle = " << t.at<double>(0, 1) * 180 / M_PI << " expected " << p.angle <<"\n";
113113
cout << "Scale = " << t.at<double>(0, 2) << " expected " << p.scale10 / 10.0 << "\n";
114114
Mat dst;
115-
ximgproc::transform(ctrRot2d, t, dst, false);
115+
ximgproc::transformFD(ctrRot2d, t, dst, false);
116116
c.push_back(dst);
117117
drawContours(img, c, 2, Scalar(0,255,255));
118118
circle(img, c[2][0], 5, Scalar(0, 255, 255));

modules/ximgproc/src/fourier_descriptors.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ void contourSampling(InputArray _src, OutputArray _out, int nbElt)
281281
r.copyTo(_out);
282282
}
283283

284-
void transform(InputArray _src, InputArray _t,OutputArray _dst, bool fdContour)
284+
void transformFD(InputArray _src, InputArray _t,OutputArray _dst, bool fdContour)
285285
{
286286
if (!fdContour)
287287
CV_Assert(_src.kind() == _InputArray::STD_VECTOR);
@@ -325,7 +325,7 @@ void transform(InputArray _src, InputArray _t,OutputArray _dst, bool fdContour)
325325
Mat(z).copyTo(_dst);
326326
}
327327

328-
cv::Ptr<ContourFitting> create(int ctr, int fd)
328+
cv::Ptr<ContourFitting> createContourFitting(int ctr, int fd)
329329
{
330330
return makePtr<ContourFitting>(ctr, fd);
331331
}

0 commit comments

Comments
 (0)