5
#ifndef __OPENCV_FOURIERDESCRIPTORS_HPP__
6
#define __OPENCV_FOURIERDESCRIPTORS_HPP__
8
#include <opencv2/core.hpp>
24
std::vector<std::complex<double> > b;
25
std::vector<std::complex<double> > a;
26
std::vector<double> frequence;
27
std::vector<double> rho, psi;
29
void
fAlpha(
double
x,
double
&fn,
double
&df);
30
double
distance(std::complex<double> r,
double
alpha);
31
double
newtonRaphson(
double
x1,
double
x2);
56
CV_WRAP
void
estimateTransformation(InputArray src, InputArray dst,
OutputArray
alphaPhiST, CV_OUT
double
&dist ,
bool
fdContour =
false);
61
CV_WRAP
void
setCtrSize(
int
n);
66
CV_WRAP
void
setFDSize(
int
n);
70
CV_WRAP
int
getCtrSize() {
return
ctrSize; };
74
CV_WRAP
int
getFDSize() {
return
fdSize; };
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition:
mat.hpp:295
This is a base class for all more or less complex algorithms in OpenCV
Definition:
core.hpp:3091
Class for ContourFitting algorithms. ContourFitting match two contours and minimizing distance
Definition:
fourier_descriptors.hpp:21
ContourFitting(int ctr=1024, int fd=16)
Fit two closed curves using fourier descriptors. More details in and
Definition:
fourier_descriptors.hpp:38
void estimateTransformation(InputArray src, InputArray dst, OutputArray alphaPhiST, double *dist=0, bool fdContour=false)
Fit two closed curves using fourier descriptors. More details in and
CV_EXPORTS_W void fourierDescriptor(InputArray src, OutputArray dst, int nbElt=-1, int nbFD=-1)
Fourier descriptors for planed closed curves
CV_EXPORTS_W void contourSampling(InputArray src, OutputArray out, int nbElt)
Contour sampling .
CV_EXPORTS_W Ptr< ContourFitting > createContourFitting(int ctr=1024, int fd=16)
create ContourFitting algorithm object
CV_EXPORTS_W void transformFD(InputArray src, InputArray t, OutputArray dst, bool fdContour=true)
transform a contour
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75
Definition:
cvstd_wrapper.hpp:74