Class PrTransformation
java.lang.Object
cz.fidentis.analyst.engines.landmarks.PrTransformation
Class used to store information about transformation that needs to be applied
to a second face when computing Procrustes analysis.
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor with values that won't transform face.PrTransformation
(double scale, javax.vecmath.Vector3d centroidAdjustment, javax.vecmath.Vector3d superImpositionAdjustment, org.ejml.simple.SimpleMatrix rotationMatrix) constructor -
Method Summary
Modifier and TypeMethodDescriptionjavax.vecmath.Vector3d
static org.ejml.simple.SimpleMatrix
Generates an identity matrix which doesn't cause any transformation and returns it.getMatrixAsQuaternion
(org.ejml.simple.SimpleMatrix matrix) Calculates quaternion from rotation matrix.org.ejml.simple.SimpleMatrix
double
getScale()
javax.vecmath.Vector3d
void
setCentroidAdjustment
(javax.vecmath.Vector3d centroidAdjustment) void
setRotationMatrix
(org.ejml.simple.SimpleMatrix rotationMatrix) void
setScale
(double scale) void
setSuperImpositionAdjustment
(javax.vecmath.Vector3d superImpositionAdjustment)
-
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 minimizedcentroidAdjustment
- 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 facerotationMatrix
- 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
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
-