mpicbg.trakem2.transform
Class TransformMesh

java.lang.Object
  extended by mpicbg.models.TransformMesh
      extended by mpicbg.trakem2.transform.TransformMesh
All Implemented Interfaces:
mpicbg.models.CoordinateTransform, mpicbg.models.InverseCoordinateTransform, mpicbg.models.InvertibleCoordinateTransform

public class TransformMesh
extends mpicbg.models.TransformMesh


Field Summary
protected  java.awt.Rectangle boundingBox
           
 
Fields inherited from class mpicbg.models.TransformMesh
av, height, va, width
 
Constructor Summary
TransformMesh(mpicbg.models.CoordinateTransform t, int numX, float width, float height)
           
 
Method Summary
 void applyInverseInPlace(float[] location)
          Catch non-invertible locations outside of the meshes boundaries and transfer them with the affine defined by the `closest' affine (the affine whose summed up control points distances to location are smallest).
 java.awt.Rectangle getBoundingBox()
           
 
Methods inherited from class mpicbg.models.TransformMesh
addTriangle, apply, applyInPlace, applyInverse, createInverse, findClosestSourcePoint, findClosestTargetPoint, getAV, getHeight, getVA, getWidth, illustrateBestRigidSVG, illustrateMesh, illustrateMeshSVG, illustrateTriangle, init, isInConvexTargetPolygon, isInSourcePolygon, numY, scale, updateAffine, updateAffines
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

boundingBox

protected final java.awt.Rectangle boundingBox
Constructor Detail

TransformMesh

public TransformMesh(mpicbg.models.CoordinateTransform t,
                     int numX,
                     float width,
                     float height)
Method Detail

getBoundingBox

public final java.awt.Rectangle getBoundingBox()

applyInverseInPlace

public void applyInverseInPlace(float[] location)
                         throws mpicbg.models.NoninvertibleModelException
Catch non-invertible locations outside of the meshes boundaries and transfer them with the affine defined by the `closest' affine (the affine whose summed up control points distances to location are smallest).

Specified by:
applyInverseInPlace in interface mpicbg.models.InverseCoordinateTransform
Overrides:
applyInverseInPlace in class mpicbg.models.TransformMesh
Throws:
mpicbg.models.NoninvertibleModelException