sugr
Class Translation_2D

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

public class Translation_2D
extends Motion_2D

class containing transformation(2) constructors

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
Translation_2D()
          standard constructor. creates an identity matrix
Translation_2D(double x, double y)
          Creates a translation matrix with single parameters
Translation_2D(double x, double y, Matrix cov)
          Creates a translation matrix with covariance and single parameters
Translation_2D(Point_2D x)
          Creates a translation by a Point_2D
Translation_2D(Point_2D x, Matrix cov)
          Creates a translation by a Point_2D
 
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

Translation_2D

public Translation_2D()
standard constructor. creates an identity matrix


Translation_2D

public Translation_2D(double x,
                      double y)
Creates a translation matrix with single parameters

Parameters:
x - moving along the x-Axis
y - moving along the y-Axis

Translation_2D

public Translation_2D(double x,
                      double y,
                      Matrix cov)
Creates a translation matrix with covariance and single parameters

Parameters:
x - moving along the x-Axis
y - moving along the y-Axis
cov - 9x9 Matrix

Translation_2D

public Translation_2D(Point_2D x)
Creates a translation by a Point_2D

Parameters:
x - an arbitrary Point_2D. Euclidean normalization will be done automatically in this method

Translation_2D

public Translation_2D(Point_2D x,
                      Matrix cov)
Creates a translation by a Point_2D

Parameters:
x - an arbitrary Point_2D. Euclidean normalization will be done automatically in this method
cov - a 9x9 matrix
Method Detail

getDegreesOfFreedom

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

Overrides:
getDegreesOfFreedom in class Motion_2D