public class ContourFitting extends Algorithm
Modifier | Constructor and Description |
---|---|
protected |
ContourFitting(long addr) |
Modifier and Type | Method and Description |
---|---|
static ContourFitting |
__fromPtr__(long addr) |
void |
estimateTransformation(Mat src,
Mat dst,
Mat alphaPhiST,
double[] dist)
Fit two closed curves using fourier descriptors.
|
void |
estimateTransformation(Mat src,
Mat dst,
Mat alphaPhiST,
double[] dist,
boolean fdContour)
Fit two closed curves using fourier descriptors.
|
protected void |
finalize() |
int |
getCtrSize() |
int |
getFDSize() |
void |
setCtrSize(int n)
set number of Fourier descriptors used in estimateTransformation
|
void |
setFDSize(int n)
set number of Fourier descriptors when estimateTransformation used vector<Point>
|
clear, empty, getDefaultName, getNativeObjAddr, save
public static ContourFitting __fromPtr__(long addr)
public int getCtrSize()
public int getFDSize()
public void estimateTransformation(Mat src, Mat dst, Mat alphaPhiST, double[] dist, boolean fdContour)
src
- Contour defining first shape.dst
- Contour defining second shape (Target).alphaPhiST
- : \( \alpha \)=alphaPhiST(0,0), \( \phi \)=alphaPhiST(0,1) (in radian), s=alphaPhiST(0,2), Tx=alphaPhiST(0,3), Ty=alphaPhiST(0,4) rotation centerdist
- distance between src and dst after matching.fdContour
- false then src and dst are contours and true src and dst are fourier descriptors.public void estimateTransformation(Mat src, Mat dst, Mat alphaPhiST, double[] dist)
src
- Contour defining first shape.dst
- Contour defining second shape (Target).alphaPhiST
- : \( \alpha \)=alphaPhiST(0,0), \( \phi \)=alphaPhiST(0,1) (in radian), s=alphaPhiST(0,2), Tx=alphaPhiST(0,3), Ty=alphaPhiST(0,4) rotation centerdist
- distance between src and dst after matching.public void setCtrSize(int n)
n
- number of Fourier descriptors equal to number of contour points after resampling.public void setFDSize(int n)
n
- number of fourier descriptors used for optimal curve matching.Generated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2