public class ProjectiveTransformer extends Object implements ImageTransformer
Modifier and Type | Class and Description |
---|---|
class |
ProjectiveTransformer.Parameters |
ImageTransformer.Data
Modifier and Type | Field and Description |
---|---|
protected CvScalar |
fillColor |
protected CvMat[] |
H |
protected static ThreadLocal<CvMat> |
H3x3 |
protected CvMat |
invK1 |
protected CvMat |
invK2 |
protected CvMat |
K1 |
protected CvMat |
K2 |
protected cvkernels.KernelData |
kernelData |
protected CvMat |
n |
protected static ThreadLocal<CvMat> |
pts4x1 |
protected CvMat |
R |
protected double[] |
referencePoints1 |
protected double[] |
referencePoints2 |
protected CvMat |
t |
Constructor and Description |
---|
ProjectiveTransformer() |
ProjectiveTransformer(CvMat K1,
CvMat K2,
CvMat R,
CvMat t,
CvMat n,
double[] referencePoints1,
double[] referencePoints2) |
ProjectiveTransformer(double[] referencePoints) |
ProjectiveTransformer(ProjectiveDevice d1,
ProjectiveDevice d2,
CvMat n,
double[] referencePoints1,
double[] referencePoints2) |
Modifier and Type | Method and Description |
---|---|
ProjectiveTransformer.Parameters |
createParameters() |
CvScalar |
getFillColor() |
CvMat |
getInvK1() |
CvMat |
getInvK2() |
CvMat |
getK1() |
CvMat |
getK2() |
CvMat |
getN() |
CvMat |
getR() |
double[] |
getReferencePoints1() |
double[] |
getReferencePoints2() |
CvMat |
getT() |
protected void |
prepareHomography(CvMat H,
int pyramidLevel,
ProjectiveTransformer.Parameters p,
boolean inverse) |
void |
setFillColor(CvScalar fillColor) |
void |
transform(CvMat srcPts,
CvMat dstPts,
ImageTransformer.Parameters parameters,
boolean inverse) |
void |
transform(ImageTransformer.Data[] data,
CvRect roi,
ImageTransformer.Parameters[] parameters,
boolean[] inverses) |
void |
transform(IplImage srcImage,
IplImage dstImage,
CvRect roi,
int pyramidLevel,
ImageTransformer.Parameters parameters,
boolean inverse) |
protected static ThreadLocal<CvMat> H3x3
protected static ThreadLocal<CvMat> pts4x1
protected CvMat K1
protected CvMat K2
protected CvMat invK1
protected CvMat invK2
protected CvMat R
protected CvMat t
protected CvMat n
protected double[] referencePoints1
protected double[] referencePoints2
protected CvScalar fillColor
protected cvkernels.KernelData kernelData
protected CvMat[] H
public ProjectiveTransformer()
public ProjectiveTransformer(double[] referencePoints)
public ProjectiveTransformer(ProjectiveDevice d1, ProjectiveDevice d2, CvMat n, double[] referencePoints1, double[] referencePoints2)
public CvScalar getFillColor()
public void setFillColor(CvScalar fillColor)
public double[] getReferencePoints1()
public double[] getReferencePoints2()
public CvMat getK1()
public CvMat getK2()
public CvMat getInvK1()
public CvMat getInvK2()
public CvMat getR()
public CvMat getT()
public CvMat getN()
protected void prepareHomography(CvMat H, int pyramidLevel, ProjectiveTransformer.Parameters p, boolean inverse)
public void transform(IplImage srcImage, IplImage dstImage, CvRect roi, int pyramidLevel, ImageTransformer.Parameters parameters, boolean inverse)
public void transform(CvMat srcPts, CvMat dstPts, ImageTransformer.Parameters parameters, boolean inverse)
transform
in interface ImageTransformer
public void transform(ImageTransformer.Data[] data, CvRect roi, ImageTransformer.Parameters[] parameters, boolean[] inverses)
transform
in interface ImageTransformer
public ProjectiveTransformer.Parameters createParameters()
createParameters
in interface ImageTransformer
Copyright © 2024. All rights reserved.