mpicbg.models
Class AbstractMovingLeastSquaresTransform

java.lang.Object
  extended by mpicbg.models.AbstractMovingLeastSquaresTransform
All Implemented Interfaces:
Serializable, CoordinateTransform
Direct Known Subclasses:
MovingLeastSquaresTransform, MovingLeastSquaresTransform2

public abstract class AbstractMovingLeastSquaresTransform
extends Object
implements CoordinateTransform, Serializable

Smooth coordinate transformation interpolating between a set of control points that are maped exactly on top of each other using landmark based deformation by means of Moving Least Squares as described by \citet{SchaeferAl06}. BibTeX:

 @article{SchaeferAl06,
   author    = {Scott Schaefer and Travis McPhail and Joe Warren},
   title     = {Image deformation using moving least squares},
   journal   = {ACM Transactions on Graphics},
   volume    = {25},
   number    = {3},
   month     = {July},
   year      = {2006},
   issn      = {0730-0301},
   pages     = {533--540},
   publisher = {ACM},
   address   = {New York, NY, USA},
 }
 

Author:
Stephan Saalfeld
See Also:
Serialized Form

Field Summary
protected  double alpha
           
protected  Model<?> model
           
 
Constructor Summary
AbstractMovingLeastSquaresTransform()
           
 
Method Summary
 double[] apply(double[] location)
          Apply the CoordinateTransform to a location.
 double getAlpha()
           
 Model<?> getModel()
           
 void setAlpha(double alpha)
           
abstract  void setMatches(Collection<PointMatch> matches)
           
 void setModel(Class<? extends Model<?>> modelClass)
           
 void setModel(Model<?> model)
           
protected  double weigh(double d)
           
 
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
applyInPlace
 

Field Detail

model

protected Model<?> model

alpha

protected double alpha
Constructor Detail

AbstractMovingLeastSquaresTransform

public AbstractMovingLeastSquaresTransform()
Method Detail

getModel

public final Model<?> getModel()

setModel

public final void setModel(Model<?> model)

setModel

public final void setModel(Class<? extends Model<?>> modelClass)
                    throws Exception
Throws:
Exception

getAlpha

public final double getAlpha()

setAlpha

public final void setAlpha(double alpha)

setMatches

public abstract void setMatches(Collection<PointMatch> matches)
                         throws NotEnoughDataPointsException,
                                IllDefinedDataPointsException
Throws:
NotEnoughDataPointsException
IllDefinedDataPointsException

weigh

protected double weigh(double d)

apply

public final double[] apply(double[] location)
Description copied from interface: CoordinateTransform
Apply the CoordinateTransform to a location.

Specified by:
apply in interface CoordinateTransform
Returns:
transformed location


Copyright © 2007-2016 Fiji. All Rights Reserved.