mpicbg.trakem2.transform
Class TranslationModel2D

java.lang.Object
  extended by mpicbg.models.AbstractModel<M>
      extended by mpicbg.models.AbstractAffineModel2D<mpicbg.models.TranslationModel2D>
          extended by mpicbg.models.TranslationModel2D
              extended by mpicbg.trakem2.transform.TranslationModel2D
All Implemented Interfaces:
mpicbg.models.Affine2D<mpicbg.models.TranslationModel2D>, mpicbg.models.Boundable, mpicbg.models.CoordinateTransform, mpicbg.models.InverseBoundable, mpicbg.models.InverseCoordinateTransform, mpicbg.models.InvertibleBoundable, mpicbg.models.InvertibleCoordinateTransform, mpicbg.models.Model<mpicbg.models.TranslationModel2D>

public class TranslationModel2D
extends mpicbg.models.TranslationModel2D
implements InvertibleCoordinateTransform


Field Summary
 
Fields inherited from class mpicbg.models.TranslationModel2D
MIN_NUM_MATCHES, tx, ty
 
Fields inherited from class mpicbg.models.AbstractModel
cost, rnd
 
Constructor Summary
TranslationModel2D()
           
 
Method Summary
 TranslationModel2D copy()
           
 void init(java.lang.String data)
          Initialize the properties of the CoordinateTransform from a data string as generated by #toString().
 java.lang.String toDataString()
          Create a String representation of the properties of the CoordinateTransform that can be used to re-create itself with CoordinateTransform.init(String).
 java.lang.String toXML(java.lang.String indent)
          Create an XML-export of the CoordinateTransform for use in TrakEM2.
 
Methods inherited from class mpicbg.models.TranslationModel2D
apply, applyInPlace, applyInverse, applyInverseInPlace, concatenate, createAffine, createInverse, createInverseAffine, fit, getMinNumMatches, preConcatenate, set, set, toArray, toArray, toMatrix, toMatrix
 
Methods inherited from class mpicbg.models.AbstractAffineModel2D
estimateBounds, estimateInverseBounds, toString
 
Methods inherited from class mpicbg.models.AbstractModel
betterThan, filter, filter, filter, filterRansac, filterRansac, filterRansac, filterRansac, getCost, getError, getMinSetSize, icp, ransac, ransac, setCost, setError, test, test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mpicbg.models.InvertibleCoordinateTransform
createInverse
 
Methods inherited from interface mpicbg.models.InverseCoordinateTransform
applyInverse, applyInverseInPlace
 
Methods inherited from interface mpicbg.models.CoordinateTransform
apply, applyInPlace
 

Constructor Detail

TranslationModel2D

public TranslationModel2D()
Method Detail

init

public final void init(java.lang.String data)
Description copied from interface: CoordinateTransform
Initialize the properties of the CoordinateTransform from a data string as generated by #toString().


toXML

public final java.lang.String toXML(java.lang.String indent)
Description copied from interface: CoordinateTransform
Create an XML-export of the CoordinateTransform for use in TrakEM2.

Returns:
TrakEM2-readable XML

toDataString

public final java.lang.String toDataString()
Description copied from interface: CoordinateTransform
Create a String representation of the properties of the CoordinateTransform that can be used to re-create itself with CoordinateTransform.init(String).

Returns:

copy

public final TranslationModel2D copy()
Specified by:
copy in interface mpicbg.models.Model<mpicbg.models.TranslationModel2D>
Overrides:
copy in class mpicbg.models.TranslationModel2D