mpicbg.trakem2.transform
Class SimilarityModel2D

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

public class SimilarityModel2D
extends mpicbg.models.SimilarityModel2D
implements InvertibleCoordinateTransform


Field Summary
 
Fields inherited from class mpicbg.models.SimilarityModel2D
MIN_NUM_MATCHES, scos, ssin, tx, ty
 
Fields inherited from class mpicbg.models.AbstractModel
cost, rnd
 
Constructor Summary
SimilarityModel2D()
           
 
Method Summary
 SimilarityModel2D 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.SimilarityModel2D
apply, applyInPlace, applyInverse, applyInverseInPlace, concatenate, createAffine, createInverse, createInverseAffine, fit, getMinNumMatches, invert, 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

SimilarityModel2D

public SimilarityModel2D()
Method Detail

init

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

Throws:
java.lang.NumberFormatException

toDataString

public 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:

toXML

public 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

copy

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