lenscorrection
Class PolynomialModel2D

java.lang.Object
  extended by mpicbg.models.AbstractModel<PolynomialModel2D>
      extended by lenscorrection.PolynomialModel2D
All Implemented Interfaces:
mpicbg.models.CoordinateTransform, mpicbg.models.Model<PolynomialModel2D>

public class PolynomialModel2D
extends mpicbg.models.AbstractModel<PolynomialModel2D>

A wrpper for NonLinearTransform and the AbstractAffineModel2D to which it is regularized.


Field Summary
 
Fields inherited from class mpicbg.models.AbstractModel
cost, rnd
 
Constructor Summary
PolynomialModel2D()
           
 
Method Summary
 float[] apply(float[] location)
           
 void applyInPlace(float[] location)
           
 PolynomialModel2D copy()
           
<P extends mpicbg.models.PointMatch>
void
fit(java.util.Collection<P> pointMatches)
           
 mpicbg.models.AbstractAffineModel2D<?> getAffine()
           
 float getLambda()
           
 int getMinNumMatches()
           
 int getOrder()
           
 void set(PolynomialModel2D m)
           
 void setAffine(mpicbg.models.AbstractAffineModel2D<?> affine)
           
 void setAffine(java.lang.Class<? extends mpicbg.models.AbstractAffineModel2D<?>> affineClass)
           
 void setLambda(float lambda)
           
 void setOrder(int order)
           
 java.lang.String 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
 

Constructor Detail

PolynomialModel2D

public PolynomialModel2D()
Method Detail

getAffine

public mpicbg.models.AbstractAffineModel2D<?> getAffine()

setAffine

public void setAffine(mpicbg.models.AbstractAffineModel2D<?> affine)

setAffine

public void setAffine(java.lang.Class<? extends mpicbg.models.AbstractAffineModel2D<?>> affineClass)
               throws java.lang.Exception
Throws:
java.lang.Exception

getOrder

public int getOrder()

setOrder

public void setOrder(int order)

getLambda

public float getLambda()

setLambda

public void setLambda(float lambda)

copy

public PolynomialModel2D copy()

fit

public <P extends mpicbg.models.PointMatch> void fit(java.util.Collection<P> pointMatches)
         throws mpicbg.models.NotEnoughDataPointsException,
                mpicbg.models.IllDefinedDataPointsException
Throws:
mpicbg.models.NotEnoughDataPointsException
mpicbg.models.IllDefinedDataPointsException

getMinNumMatches

public int getMinNumMatches()

set

public void set(PolynomialModel2D m)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

apply

public float[] apply(float[] location)

applyInPlace

public void applyInPlace(float[] location)