|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsugr.Element
sugr.Transformation
sugr.Homography_2D
This class contains constructors to build a Homography_2D. Its matrix has 9 entries, but 8 needs to be set due to homogenity A homography_2D consists of:
Field Summary | |
protected static int |
DIM
dimension must be set. |
private static long |
serialVersionUID
Class version number for serialization |
Fields inherited from class sugr.Element |
cov, MAXITER, v |
Constructor Summary | |
Homography_2D()
standard constructor. |
|
Homography_2D(Affinity_2D aff,
Vector projective)
Creates a homography by an affinity and the projective part. |
|
Homography_2D(Affinity_2D aff,
Vector projective,
Matrix cov)
Creates a homography with covariane by an affinity and the projective part. |
|
Homography_2D(double[] hom)
sets Homography_2D by hand. positions are: |hom[0] hom[1] hom[2] | |hom[3] hom[4] hom[5] | |hom[6] hom[7] hom[8] | |
|
Homography_2D(double[] hom,
Matrix cov)
sets Homography_2D with covariance by hand. positions are: |hom[0] hom[1] hom[2] | |hom[3] hom[4] hom[5] | |hom[6] hom[7] hom[8] | |
|
Homography_2D(Homography_2D h1,
Homography_2D h2)
Creates a homography out of two given homographies: H=h1*h2 |
|
Homography_2D(Matrix hom,
Matrix cov)
Constructs a homography out of a given homography matrix and a covariance matrix for the given homography. |
|
Homography_2D(Point_2D x11,
Point_2D x12,
Point_2D x21,
Point_2D x22,
Point_2D x31,
Point_2D x32,
Point_2D x41,
Point_2D x42)
Creates homography from four homologous points All points need to have covariance matrices of rank at least two. |
Method Summary | |
void |
doCondition(double[] f)
Condition that element with a set of conditioning factors. |
int |
getDegreesOfFreedom()
Returns the number of elements to specify this transformation |
int |
getDimCol()
Get the number of columns of the transformation matrix. |
int |
getDimRow()
Get the number of rows of the transformation matrix. |
Matrix |
getJacobianAfterFirst(Entity e)
The the Jacobian after the first entity of a trilinear relation. |
Matrix |
getJacobianAfterSecond(Entity e)
The the Jacobian after the second entity of a trilinear relation. |
Entity |
transform(Entity e)
Transforms an entity with this transformation. |
Methods inherited from class sugr.Transformation |
errorProp, getDimension, getJacobianOfRelation, getReducedAB, getTransformationMatrix, getTransposeTransMatrix, transform |
Methods inherited from class sugr.Element |
approximate, calcCov, changeNullspace, changeNullspace, checkCovDim, checkElement, clone, ensureConstraints, estimate, estimate, gaussHelmertIterations, gaussHelmertIterationsOld, getConstraintValue, getCov, getJacobianOfConstraint, getV, normalizeSphere, normalizeSphereComparable, print, print, reduceFirstMatrix, reduceMatrix, reduceMatrix, setCov, setV, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
protected static final int DIM
Constructor Detail |
public Homography_2D()
public Homography_2D(Affinity_2D aff, Vector projective)
aff
- contains the affinity partprojective
- a vector with dimension 2. contains the
projective part of homography_2Dpublic Homography_2D(Affinity_2D aff, Vector projective, Matrix cov)
aff
- contains the affinity partprojective
- a vector with dimension 2. contains the
projective part of homography_2Dcov
- 9x9 matrixpublic Homography_2D(double[] hom)
|hom[0] hom[1] hom[2] | |hom[3] hom[4] hom[5] | |hom[6] hom[7] hom[8] |
hom
- a double array containing the values. Must be
dimension 9public Homography_2D(double[] hom, Matrix cov)
|hom[0] hom[1] hom[2] | |hom[3] hom[4] hom[5] | |hom[6] hom[7] hom[8] |
hom
- a double array containing the values. Must be
dimension 8cov
- 9x9 matrixpublic Homography_2D(Matrix hom, Matrix cov)
hom
- a 3x3 homography matrixcov
- 9x9 covariance matrixpublic Homography_2D(Point_2D x11, Point_2D x12, Point_2D x21, Point_2D x22, Point_2D x31, Point_2D x32, Point_2D x41, Point_2D x42)
x11
- first point in first imagex12
- first point in second imagex21
- second point in first imagex22
- second point in second imagex31
- third point in first imagex32
- third point in second imagex41
- fourth point in first imagex42
- fourth point in second imagepublic Homography_2D(Homography_2D h1, Homography_2D h2)
h1
- the first homographyh2
- the second homographyMethod Detail |
public int getDegreesOfFreedom()
getDegreesOfFreedom
in class Transformation
public Entity transform(Entity e)
transform
in class Transformation
e
- Entity to transform
public void doCondition(double[] f)
doCondition
in class Element
f
- conditioning factors ( two factors for transformations!)public Matrix getJacobianAfterFirst(Entity e)
getJacobianAfterFirst
in class Transformation
e
- the second Entity of the relation.public Matrix getJacobianAfterSecond(Entity e)
getJacobianAfterSecond
in class Transformation
e
- the first Entity of the relation.public int getDimRow()
getDimRow
in class Transformation
public int getDimCol()
getDimCol
in class Transformation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |