mpicbg.models
Class InvertibleConstantModel<A extends Model<A> & InvertibleCoordinateTransform,M extends InvertibleConstantModel<A,M>>

java.lang.Object
  extended by mpicbg.models.AbstractModel<M>
      extended by mpicbg.models.ConstantModel<A,M>
          extended by mpicbg.models.InvertibleConstantModel<A,M>
All Implemented Interfaces:
Serializable, CoordinateTransform, InverseCoordinateTransform, InvertibleCoordinateTransform, Model<M>
Direct Known Subclasses:
ConstantAffineModel1D

public class InvertibleConstantModel<A extends Model<A> & InvertibleCoordinateTransform,M extends InvertibleConstantModel<A,M>>
extends ConstantModel<A,M>
implements InvertibleCoordinateTransform

Invertible specialization of ConstantModel.

Author:
Stephan Saalfeld
See Also:
Serialized Form

Field Summary
 
Fields inherited from class mpicbg.models.ConstantModel
model
 
Fields inherited from class mpicbg.models.AbstractModel
cost, rnd
 
Constructor Summary
InvertibleConstantModel(A model)
           
 
Method Summary
 double[] applyInverse(double[] location)
          Apply the inverse of the model to a point location
 void applyInverseInPlace(double[] location)
          apply the inverse of the model to a point location
 M copy()
          Clone the model.
 InvertibleCoordinateTransform createInverse()
           
 
Methods inherited from class mpicbg.models.ConstantModel
apply, applyInPlace, fit, getMinNumMatches, getModel, set
 
Methods inherited from class mpicbg.models.AbstractModel
betterThan, filter, filter, filter, filterRansac, filterRansac, filterRansac, filterRansac, fit, fit, getCost, icp, localSmoothnessFilter, ransac, ransac, setCost, test, test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface mpicbg.models.CoordinateTransform
apply, applyInPlace
 

Constructor Detail

InvertibleConstantModel

public InvertibleConstantModel(A model)
Method Detail

copy

public M copy()
Description copied from interface: Model
Clone the model.

Specified by:
copy in interface Model<M extends InvertibleConstantModel<A,M>>
Overrides:
copy in class ConstantModel<A extends Model<A> & InvertibleCoordinateTransform,M extends InvertibleConstantModel<A,M>>

applyInverse

public double[] applyInverse(double[] location)
                      throws NoninvertibleModelException
Description copied from interface: InverseCoordinateTransform
Apply the inverse of the model to a point location

Specified by:
applyInverse in interface InverseCoordinateTransform
Returns:
transformed point
Throws:
NoninvertibleModelException

applyInverseInPlace

public void applyInverseInPlace(double[] location)
                         throws NoninvertibleModelException
Description copied from interface: InverseCoordinateTransform
apply the inverse of the model to a point location

Specified by:
applyInverseInPlace in interface InverseCoordinateTransform
Throws:
NoninvertibleModelException

createInverse

public InvertibleCoordinateTransform createInverse()
Specified by:
createInverse in interface InvertibleCoordinateTransform


Copyright © 2007-2016 Fiji. All Rights Reserved.