mpicbg.models
Class MovingLeastSquaresTransform

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

public class MovingLeastSquaresTransform
extends AbstractMovingLeastSquaresTransform

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}.

This implementation internally stores the passed PointMatch objects per reference and is thus best suited for an interactive application where these matches are changed from an external context.

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  Set<PointMatch> matches
           
 
Fields inherited from class mpicbg.models.AbstractMovingLeastSquaresTransform
alpha, model
 
Constructor Summary
MovingLeastSquaresTransform()
           
 
Method Summary
 void applyInPlace(double[] location)
          Apply the CoordinateTransform to a location.
 Set<PointMatch> getMatches()
           
 void setMatches(Collection<PointMatch> matches)
           
 
Methods inherited from class mpicbg.models.AbstractMovingLeastSquaresTransform
apply, getAlpha, getModel, setAlpha, setModel, setModel, weigh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matches

protected final Set<PointMatch> matches
Constructor Detail

MovingLeastSquaresTransform

public MovingLeastSquaresTransform()
Method Detail

getMatches

public final Set<PointMatch> getMatches()

setMatches

public final void setMatches(Collection<PointMatch> matches)
                      throws NotEnoughDataPointsException,
                             IllDefinedDataPointsException
Specified by:
setMatches in class AbstractMovingLeastSquaresTransform
Throws:
NotEnoughDataPointsException
IllDefinedDataPointsException

applyInPlace

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



Copyright © 2007-2016 Fiji. All Rights Reserved.