sugr
Class Affinity_2D

java.lang.Object
  extended bysugr.Element
      extended bysugr.Transformation
          extended bysugr.Homography_2D
              extended bysugr.Affinity_2D
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
Motion_2D

public class Affinity_2D
extends Homography_2D

This class contains constructors to build a Affinity_2D. Its matrix needs 6 entries to build it: A Affinity_2D consists of:

Author:
Norbert Fischer
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          Class version number for serialization
 
Fields inherited from class sugr.Homography_2D
DIM
 
Fields inherited from class sugr.Element
cov, MAXITER, v
 
Constructor Summary
Affinity_2D()
          standard constructor. creates an identity matrix
Affinity_2D(double a, double b, double c, double d, double e, double f)
          sets the matrix by hand. positions are: |a c e| |b d f| |0 0 1|
Affinity_2D(double a, double b, double c, double d, double e, double f, Matrix cov)
          sets the matrix with covariance by hand. positions are: |a c e| |b d f| |0 0 1|
Affinity_2D(Rotation_2D rot, Translation_2D trans, Vector scale, double shear, boolean shearSymmetric)
          Creates an affinity_2D by 6 paramaters: Transformation(2) Rotation(1), Scale (2), in x and y different values possible Shear (1), Error propagation is done automatically.
Affinity_2D(Rotation_2D rot, Translation_2D trans, Vector scale, double shear, boolean shearSymmetric, Matrix cov)
          Creates an affinity_2D with covariance by 6 paramaters: Transformation(2) Rotation(1), Scale (2), in x and y different values possible Shear (1), No error propagation will be done.
 
Method Summary
 int getDegreesOfFreedom()
          Returns the number of elements to specify this transformation
 
Methods inherited from class sugr.Homography_2D
doCondition, getDimCol, getDimRow, getJacobianAfterFirst, getJacobianAfterSecond, transform
 
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

serialVersionUID

private static final long serialVersionUID
Class version number for serialization

See Also:
Constant Field Values
Constructor Detail

Affinity_2D

public Affinity_2D()
standard constructor. creates an identity matrix


Affinity_2D

public Affinity_2D(double a,
                   double b,
                   double c,
                   double d,
                   double e,
                   double f)
sets the matrix by hand. positions are:
           |a  c  e|
           |b  d  f|
           |0  0  1|
 


Affinity_2D

public Affinity_2D(double a,
                   double b,
                   double c,
                   double d,
                   double e,
                   double f,
                   Matrix cov)
sets the matrix with covariance by hand. positions are:
           |a  c  e|
           |b  d  f|
           |0  0  1|
 

Parameters:
cov - 9x9 matrix

Affinity_2D

public Affinity_2D(Rotation_2D rot,
                   Translation_2D trans,
                   Vector scale,
                   double shear,
                   boolean shearSymmetric)
Creates an affinity_2D by 6 paramaters: Error propagation is done automatically.

Parameters:
rot - contains the rotation matrix
trans - contains the translation matrix
scale - a vector with dimension 2
shear - just as the name says
shearSymmetric - boolean Flag. Set it true to get symmetric shear otherwise unsymmetric

Affinity_2D

public Affinity_2D(Rotation_2D rot,
                   Translation_2D trans,
                   Vector scale,
                   double shear,
                   boolean shearSymmetric,
                   Matrix cov)
Creates an affinity_2D with covariance by 6 paramaters: No error propagation will be done.

Parameters:
rot - contains the rotation matrix
trans - contains the translation matrix
scale - a vector with dimension 2
shear - just as the name says
shearSymmetric - boolean Flag. Set it true to get symmetric shear otherwise unsymmetric
cov - 9x9-matrix
Method Detail

getDegreesOfFreedom

public int getDegreesOfFreedom()
Returns the number of elements to specify this transformation

Overrides:
getDegreesOfFreedom in class Homography_2D