mpicbg.models
Class ConstantAffineModel1D<A extends Model<A> & Affine1D<A> & InvertibleBoundable>

java.lang.Object
  extended by mpicbg.models.AbstractModel<M>
      extended by mpicbg.models.ConstantModel<A,M>
          extended by mpicbg.models.InvertibleConstantModel<A,ConstantAffineModel1D<A>>
              extended by mpicbg.models.ConstantAffineModel1D<A>
All Implemented Interfaces:
Serializable, Affine1D<ConstantAffineModel1D<A>>, Boundable, CoordinateTransform, InverseBoundable, InverseCoordinateTransform, InvertibleBoundable, InvertibleCoordinateTransform, Model<ConstantAffineModel1D<A>>

public final class ConstantAffineModel1D<A extends Model<A> & Affine1D<A> & InvertibleBoundable>
extends InvertibleConstantModel<A,ConstantAffineModel1D<A>>
implements Affine1D<ConstantAffineModel1D<A>>, InvertibleBoundable

1D affine specialization of ConstantModel. No multiple inheritance in Java, so it cannot be an AffineModel1D by itself.

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
ConstantAffineModel1D(A model)
           
 
Method Summary
 void concatenate(ConstantAffineModel1D<A> affine1d)
           
 ConstantAffineModel1D<A> copy()
          Clone the model.
 AffineModel1D createAffineModel1D()
           
 ConstantAffineModel1D<A> createInverse()
           
 void estimateBounds(double[] min, double[] max)
          Estimate the bounds of an n-dimensional interval [min,max] with min and max being n-dimensional vectors.
 void estimateInverseBounds(double[] min, double[] max)
          Estimate the bounds of an n-dimensional interval [min,max] with min and max being n-dimensional vectors.
 void preConcatenate(ConstantAffineModel1D<A> affine1d)
           
 void toArray(double[] data)
          Write the 2 parameters of the affine into a double array.
 void toMatrix(double[][] data)
          Write the 2 parameters of the affine into a 2x1 double array.
 
Methods inherited from class mpicbg.models.InvertibleConstantModel
applyInverse, applyInverseInPlace
 
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
 
Methods inherited from interface mpicbg.models.InverseCoordinateTransform
applyInverse, applyInverseInPlace
 

Constructor Detail

ConstantAffineModel1D

public ConstantAffineModel1D(A model)
Method Detail

copy

public ConstantAffineModel1D<A> copy()
Description copied from interface: Model
Clone the model.

Specified by:
copy in interface Model<ConstantAffineModel1D<A extends Model<A> & Affine1D<A> & InvertibleBoundable>>
Overrides:
copy in class InvertibleConstantModel<A extends Model<A> & Affine1D<A> & InvertibleBoundable,ConstantAffineModel1D<A extends Model<A> & Affine1D<A> & InvertibleBoundable>>

createInverse

public ConstantAffineModel1D<A> createInverse()
Specified by:
createInverse in interface Affine1D<ConstantAffineModel1D<A extends Model<A> & Affine1D<A> & InvertibleBoundable>>
Specified by:
createInverse in interface InvertibleCoordinateTransform
Overrides:
createInverse in class InvertibleConstantModel<A extends Model<A> & Affine1D<A> & InvertibleBoundable,ConstantAffineModel1D<A extends Model<A> & Affine1D<A> & InvertibleBoundable>>

createAffineModel1D

public AffineModel1D createAffineModel1D()

preConcatenate

public void preConcatenate(ConstantAffineModel1D<A> affine1d)
Specified by:
preConcatenate in interface Affine1D<ConstantAffineModel1D<A extends Model<A> & Affine1D<A> & InvertibleBoundable>>

concatenate

public void concatenate(ConstantAffineModel1D<A> affine1d)
Specified by:
concatenate in interface Affine1D<ConstantAffineModel1D<A extends Model<A> & Affine1D<A> & InvertibleBoundable>>

toArray

public void toArray(double[] data)
Description copied from interface: Affine1D
Write the 2 parameters of the affine into a double array. The order is m00, m01

Specified by:
toArray in interface Affine1D<ConstantAffineModel1D<A extends Model<A> & Affine1D<A> & InvertibleBoundable>>

toMatrix

public void toMatrix(double[][] data)
Description copied from interface: Affine1D
Write the 2 parameters of the affine into a 2x1 double array. The order is [0][0] -> m00; [0][1] -> m01;

Specified by:
toMatrix in interface Affine1D<ConstantAffineModel1D<A extends Model<A> & Affine1D<A> & InvertibleBoundable>>

estimateBounds

public void estimateBounds(double[] min,
                           double[] max)
Description copied from interface: Boundable
Estimate the bounds of an n-dimensional interval [min,max] with min and max being n-dimensional vectors.

Specified by:
estimateBounds in interface Boundable

estimateInverseBounds

public void estimateInverseBounds(double[] min,
                                  double[] max)
                           throws NoninvertibleModelException
Description copied from interface: InverseBoundable
Estimate the bounds of an n-dimensional interval [min,max] with min and max being n-dimensional vectors.

Specified by:
estimateInverseBounds in interface InverseBoundable
Throws:
NoninvertibleModelException


Copyright © 2007-2016 Fiji. All Rights Reserved.