Class PrTransformation

java.lang.Object
cz.fidentis.analyst.engines.landmarks.PrTransformation

public class PrTransformation extends Object
Class used to store information about transformation that needs to be applied to a second face when computing Procrustes analysis.
  • Constructor Details

    • PrTransformation

      public PrTransformation(double scale, javax.vecmath.Vector3d centroidAdjustment, javax.vecmath.Vector3d superImpositionAdjustment, org.ejml.simple.SimpleMatrix rotationMatrix)
      constructor
      Parameters:
      scale - determines by how much should be faced enlarged or minimized
      centroidAdjustment - is a vector determining how should be the face moved to make (0,0,0)
      superImpositionAdjustment - is a vector determining how should be the face moved to be superimposed over primary face
      rotationMatrix - determines how to rotate face
    • PrTransformation

      public PrTransformation()
      Empty constructor with values that won't transform face. To set values later attribute setters can be used.
       rotation matrix is set to identity matrix
       scale is 1
       adjustment is none
       
  • Method Details

    • getScale

      public double getScale()
    • getCentroidAdjustment

      public javax.vecmath.Vector3d getCentroidAdjustment()
    • getSuperImpositionAdjustment

      public javax.vecmath.Vector3d getSuperImpositionAdjustment()
    • getRotationMatrix

      public org.ejml.simple.SimpleMatrix getRotationMatrix()
    • setScale

      public void setScale(double scale)
    • getMatrixAsQuaternion

      public Quaternion getMatrixAsQuaternion(org.ejml.simple.SimpleMatrix matrix)
      Calculates quaternion from rotation matrix.
      Parameters:
      matrix - Input matrix
      Returns:
      quaternion with rotation values
    • setCentroidAdjustment

      public void setCentroidAdjustment(javax.vecmath.Vector3d centroidAdjustment)
    • setSuperImpositionAdjustment

      public void setSuperImpositionAdjustment(javax.vecmath.Vector3d superImpositionAdjustment)
    • setRotationMatrix

      public void setRotationMatrix(org.ejml.simple.SimpleMatrix rotationMatrix)
    • getIdentityMatrix

      public static org.ejml.simple.SimpleMatrix getIdentityMatrix()
      Generates an identity matrix which doesn't cause any transformation and returns it.
      Returns:
      identity matrix