@Namespace(value="cv::ximgproc") @NoOffset @Properties(inherit=opencv_ximgproc.class) public class ContourFitting extends Algorithm
/** \brief Class for ContourFitting algorithms.
ContourFitting match two contours z_a and z_b minimizing distance
\[ d(z_a,z_b)=\sum (a_n - s b_n e^{j(n \alpha +\phi )})^2 \] where a_n and b_n are Fourier descriptors of z_a and z_b and s is a scaling factor and \phi is angle rotation and \alpha is starting point factor adjustementPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ContourFitting() |
ContourFitting(int ctr,
int fd)
\brief Fit two closed curves using fourier descriptors.
|
ContourFitting(long size)
Native array allocator.
|
ContourFitting(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
estimateTransformation(GpuMat src,
GpuMat dst,
GpuMat alphaPhiST) |
void |
estimateTransformation(GpuMat src,
GpuMat dst,
GpuMat alphaPhiST,
double[] dist) |
void |
estimateTransformation(GpuMat src,
GpuMat dst,
GpuMat alphaPhiST,
double[] dist,
boolean fdContour) |
void |
estimateTransformation(GpuMat src,
GpuMat dst,
GpuMat alphaPhiST,
DoubleBuffer dist) |
void |
estimateTransformation(GpuMat src,
GpuMat dst,
GpuMat alphaPhiST,
DoubleBuffer dist,
boolean fdContour) |
void |
estimateTransformation(GpuMat src,
GpuMat dst,
GpuMat alphaPhiST,
DoublePointer dist) |
void |
estimateTransformation(GpuMat src,
GpuMat dst,
GpuMat alphaPhiST,
DoublePointer dist,
boolean fdContour) |
void |
estimateTransformation(Mat src,
Mat dst,
Mat alphaPhiST) |
void |
estimateTransformation(Mat src,
Mat dst,
Mat alphaPhiST,
double[] dist) |
void |
estimateTransformation(Mat src,
Mat dst,
Mat alphaPhiST,
double[] dist,
boolean fdContour) |
void |
estimateTransformation(Mat src,
Mat dst,
Mat alphaPhiST,
DoubleBuffer dist) |
void |
estimateTransformation(Mat src,
Mat dst,
Mat alphaPhiST,
DoubleBuffer dist,
boolean fdContour) |
void |
estimateTransformation(Mat src,
Mat dst,
Mat alphaPhiST,
DoublePointer dist)
\brief Fit two closed curves using fourier descriptors.
|
void |
estimateTransformation(Mat src,
Mat dst,
Mat alphaPhiST,
DoublePointer dist,
boolean fdContour)
\brief Fit two closed curves using fourier descriptors.
|
void |
estimateTransformation(UMat src,
UMat dst,
UMat alphaPhiST) |
void |
estimateTransformation(UMat src,
UMat dst,
UMat alphaPhiST,
double[] dist) |
void |
estimateTransformation(UMat src,
UMat dst,
UMat alphaPhiST,
double[] dist,
boolean fdContour) |
void |
estimateTransformation(UMat src,
UMat dst,
UMat alphaPhiST,
DoubleBuffer dist) |
void |
estimateTransformation(UMat src,
UMat dst,
UMat alphaPhiST,
DoubleBuffer dist,
boolean fdContour) |
void |
estimateTransformation(UMat src,
UMat dst,
UMat alphaPhiST,
DoublePointer dist) |
void |
estimateTransformation(UMat src,
UMat dst,
UMat alphaPhiST,
DoublePointer dist,
boolean fdContour) |
int |
getCtrSize() |
int |
getFDSize() |
ContourFitting |
getPointer(long i) |
ContourFitting |
position(long position) |
void |
setCtrSize(int n)
\brief set number of Fourier descriptors used in estimateTransformation
|
void |
setFDSize(int n)
\brief set number of Fourier descriptors when estimateTransformation used vector
|
clear, empty, getDefaultName, read, save, save, write, write, writeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic ContourFitting(Pointer p)
Pointer(Pointer).public ContourFitting(long size)
Pointer.position(long).public ContourFitting(int ctr,
int fd)
ctr - number of Fourier descriptors equal to number of contour points after resampling.fd - Contour defining second shape (Target).public ContourFitting()
public ContourFitting position(long position)
public ContourFitting getPointer(long i)
getPointer in class Algorithmpublic void estimateTransformation(@ByVal Mat src, @ByVal Mat dst, @ByVal Mat alphaPhiST, DoublePointer dist, @Cast(value="bool") 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(@ByVal Mat src, @ByVal Mat dst, @ByVal Mat alphaPhiST)
public void estimateTransformation(@ByVal Mat src, @ByVal Mat dst, @ByVal Mat alphaPhiST, DoubleBuffer dist, @Cast(value="bool") boolean fdContour)
public void estimateTransformation(@ByVal Mat src, @ByVal Mat dst, @ByVal Mat alphaPhiST, double[] dist, @Cast(value="bool") boolean fdContour)
public void estimateTransformation(@ByVal UMat src, @ByVal UMat dst, @ByVal UMat alphaPhiST, DoublePointer dist, @Cast(value="bool") boolean fdContour)
public void estimateTransformation(@ByVal UMat src, @ByVal UMat dst, @ByVal UMat alphaPhiST)
public void estimateTransformation(@ByVal UMat src, @ByVal UMat dst, @ByVal UMat alphaPhiST, DoubleBuffer dist, @Cast(value="bool") boolean fdContour)
public void estimateTransformation(@ByVal UMat src, @ByVal UMat dst, @ByVal UMat alphaPhiST, double[] dist, @Cast(value="bool") boolean fdContour)
public void estimateTransformation(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal GpuMat alphaPhiST, DoublePointer dist, @Cast(value="bool") boolean fdContour)
public void estimateTransformation(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal GpuMat alphaPhiST)
public void estimateTransformation(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal GpuMat alphaPhiST, DoubleBuffer dist, @Cast(value="bool") boolean fdContour)
public void estimateTransformation(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal GpuMat alphaPhiST, double[] dist, @Cast(value="bool") boolean fdContour)
public void estimateTransformation(@ByVal Mat src, @ByVal Mat dst, @ByVal Mat alphaPhiST, @ByRef DoublePointer 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.fdContour - false then src and dst are contours and true src and dst are fourier descriptors.public void estimateTransformation(@ByVal Mat src, @ByVal Mat dst, @ByVal Mat alphaPhiST, @ByRef DoubleBuffer dist)
public void estimateTransformation(@ByVal Mat src, @ByVal Mat dst, @ByVal Mat alphaPhiST, @ByRef double[] dist)
public void estimateTransformation(@ByVal UMat src, @ByVal UMat dst, @ByVal UMat alphaPhiST, @ByRef DoublePointer dist)
public void estimateTransformation(@ByVal UMat src, @ByVal UMat dst, @ByVal UMat alphaPhiST, @ByRef DoubleBuffer dist)
public void estimateTransformation(@ByVal UMat src, @ByVal UMat dst, @ByVal UMat alphaPhiST, @ByRef double[] dist)
public void estimateTransformation(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal GpuMat alphaPhiST, @ByRef DoublePointer dist)
public void estimateTransformation(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal GpuMat alphaPhiST, @ByRef DoubleBuffer dist)
public void estimateTransformation(@ByVal GpuMat src, @ByVal GpuMat dst, @ByVal GpuMat alphaPhiST, @ByRef double[] dist)
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.public int getCtrSize()
public int getFDSize()
Copyright © 2021. All rights reserved.