plugins.big.bigsnakeutils.shape.priorshapes
Class ShapeProjector

java.lang.Object
  extended by plugins.big.bigsnakeutils.shape.priorshapes.ShapeProjector

public class ShapeProjector
extends java.lang.Object

Class that projects spline curves onto an affine invariant shape space.

Version:
May 3, 2014
Author:
Ricard Delgado-Gonzalo (ricard.delgado@gmail.com)

Constructor Summary
ShapeProjector(PriorShape shape, Jama.Matrix projector, Jama.Matrix orthoProjector)
          Constructor affine transform (discrete).
ShapeProjector(PriorShape shape, Jama.Matrix projector, Jama.Matrix orthoProjector, Jama.Matrix B)
          Constructor Similarity transform.
 
Method Summary
 Jama.Matrix getOrthoprojectionMatrix()
          Returns the matrix that encodes the orthogonal projector of an arbitrary shape to the subspace orthogonal to the shape-space.
 Jama.Matrix getProjectionMatrix()
          Returns the matrix that encodes the orthogonal projector of an arbitrary shape to the shape-space.
 PriorShape getShape()
          Returns the type of prior-shape that is used.
 Snake2DNode[] orthoProject(Snake2DNode[] inputNodes)
          Projects a set of snake-defining nodes to the subspace orthogonal to the corresponding shape-space.
 double orthoProjectionDistanceAffine(Snake2DNode[] inputNodes)
          Returns the distance between the shape space and the projection of the input shape to the orthogonal complement.
 double orthoProjectionDistanceSimilarity(Snake2DNode[] inputNodes)
          Returns the distance between the shape space and the projection of the input shape to the orthogonal complement.
 Snake2DNode[] project(Snake2DNode[] inputNodes)
          Projects a set of snake-defining nodes to the corresponding shape-space.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeProjector

public ShapeProjector(PriorShape shape,
                      Jama.Matrix projector,
                      Jama.Matrix orthoProjector)
Constructor affine transform (discrete).


ShapeProjector

public ShapeProjector(PriorShape shape,
                      Jama.Matrix projector,
                      Jama.Matrix orthoProjector,
                      Jama.Matrix B)
Constructor Similarity transform.

Method Detail

orthoProjectionDistanceAffine

public double orthoProjectionDistanceAffine(Snake2DNode[] inputNodes)
Returns the distance between the shape space and the projection of the input shape to the orthogonal complement.


orthoProjectionDistanceSimilarity

public double orthoProjectionDistanceSimilarity(Snake2DNode[] inputNodes)
Returns the distance between the shape space and the projection of the input shape to the orthogonal complement.


project

public Snake2DNode[] project(Snake2DNode[] inputNodes)
Projects a set of snake-defining nodes to the corresponding shape-space.


orthoProject

public Snake2DNode[] orthoProject(Snake2DNode[] inputNodes)
Projects a set of snake-defining nodes to the subspace orthogonal to the corresponding shape-space.


getProjectionMatrix

public Jama.Matrix getProjectionMatrix()
Returns the matrix that encodes the orthogonal projector of an arbitrary shape to the shape-space.


getOrthoprojectionMatrix

public Jama.Matrix getOrthoprojectionMatrix()
Returns the matrix that encodes the orthogonal projector of an arbitrary shape to the subspace orthogonal to the shape-space.


getShape

public PriorShape getShape()
Returns the type of prior-shape that is used.