Class AffineTransform
java.lang.Object
org.itk.simple.Transform
org.itk.simple.AffineTransform
An affine transformation about a fixed center with translation for a
2D or 3D coordinate.
See:
itk::AffineTransform
C++ includes: sitkAffineTransform.h
-
Field Summary
Fields inherited from class Transform
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionAffineTransform(long dimensions) itk::simple::AffineTransform::AffineTransform(unsigned int dimensions)protectedAffineTransform(long cPtr, boolean cMemoryOwn) itk::simple::AffineTransform::AffineTransform(unsigned int dimensions)AffineTransform(Transform arg0) itk::simple::AffineTransform::AffineTransform(unsigned int dimensions)AffineTransform(VectorDouble matrix, VectorDouble translation) itk::simple::AffineTransform::AffineTransform(unsigned int dimensions)AffineTransform(VectorDouble matrix, VectorDouble translation, VectorDouble fixedCenter) itk::simple::AffineTransform::AffineTransform(unsigned int dimensions) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()itk::simple::AffineTransform::~AffineTransform() overrideprotected voidfinalize()std::vector<double> itk::simple::AffineTransform::GetCenter() constprotected static longgetCPtr(AffineTransform obj) std::vector<double> itk::simple::AffineTransform::GetMatrix() constgetName()std::string itk::simple::AffineTransform::GetName() const override Name of this classstd::vector<double> itk::simple::AffineTransform::GetTranslation() const parametersvoidrotate(int axis1, int axis2, double angle) Self& itk::simple::AffineTransform::Rotate(int axis1, int axis2, double angle, bool pre=false)voidrotate(int axis1, int axis2, double angle, boolean pre) Self& itk::simple::AffineTransform::Rotate(int axis1, int axis2, double angle, bool pre=false)voidscale(double factor) Self& itk::simple::AffineTransform::Scale(double factor, bool pre=false)voidscale(double factor, boolean pre) Self& itk::simple::AffineTransform::Scale(double factor, bool pre=false)voidscale(VectorDouble factor) Self& itk::simple::AffineTransform::Scale(double factor, bool pre=false)voidscale(VectorDouble factor, boolean pre) Self& itk::simple::AffineTransform::Scale(double factor, bool pre=false)voidsetCenter(VectorDouble params) Self& itk::simple::AffineTransform::SetCenter(const std::vector< double > ¶ms) fixed parametervoidsetMatrix(VectorDouble matrix) Self& itk::simple::AffineTransform::SetMatrix(const std::vector< double > &matrix)voidsetTranslation(VectorDouble translation) Self& itk::simple::AffineTransform::SetTranslation(const std::vector< double > &translation)voidshear(int axis1, int axis2, double coef) Self& itk::simple::AffineTransform::Shear(int axis1, int axis2, double coef, bool pre=false)voidshear(int axis1, int axis2, double coef, boolean pre) Self& itk::simple::AffineTransform::Shear(int axis1, int axis2, double coef, bool pre=false)protected static longvoidtranslate(VectorDouble offset) Self& itk::simple::AffineTransform::Translate(const std::vector< double > &offset, bool pre=false)voidtranslate(VectorDouble offset, boolean pre) Self& itk::simple::AffineTransform::Translate(const std::vector< double > &offset, bool pre=false)Methods inherited from class Transform
getCPtr, getDimension, getFixedParameters, getInverse, getITKBase, getNumberOfFixedParameters, getNumberOfParameters, getParameters, getTransformEnum, isLinear, makeUnique, setFixedParameters, setIdentity, setInverse, setParameters, swigRelease, toString, transformPoint, transformVector, writeTransformModifier and TypeMethodDescriptionprotected static longlongunsigned int itk::simple::Transform::GetDimension() const Return the dimension of the Transform ( 2D or 3D )Transform itk::simple::Transform::GetInverse() const Return a new inverse transform of the same type as this.longunsigned int itk::simple::Transform::GetNumberOfFixedParameters() const Get the number of fixed parameterslongunsigned int itk::simple::Transform::GetNumberOfParameters() const Return the number of optimizable parametersTransformEnum itk::simple::Transform::GetTransformEnum() const Get the TransformEnum of the underlying Transform.booleanisLinear()virtual bool itk::simple::Transform::IsLinear() constvoidvoid itk::simple::Transform::MakeUnique() Performs actually coping if needed to make object unique.voidsetFixedParameters(VectorDouble parameters) voidvirtual void itk::simple::Transform::SetIdentity()booleanvirtual bool itk::simple::Transform::SetInverse() Try to change the current transform to it's inverse.voidsetParameters(VectorDouble parameters) protected static longswigRelease(Transform obj) toString()std::string itk::simple::Transform::ToString() consttransformPoint(VectorDouble point) std::vector<double> itk::simple::Transform::TransformPoint(const std::vector< double > &point) const Apply transform to a point.transformVector(VectorDouble vector, VectorDouble point) std::vector<double> itk::simple::Transform::TransformVector(const std::vector< double > &vector, const std::vector< double > &point) const Apply transform to a vector at a point.voidwriteTransform(String filename) void itk::simple::Transform::WriteTransform(const std::string &filename) const
-
Constructor Details
-
AffineTransform
protected AffineTransform(long cPtr, boolean cMemoryOwn) -
AffineTransform
public AffineTransform(long dimensions) itk::simple::AffineTransform::AffineTransform(unsigned int dimensions) -
AffineTransform
itk::simple::AffineTransform::AffineTransform(unsigned int dimensions) -
AffineTransform
itk::simple::AffineTransform::AffineTransform(unsigned int dimensions) -
AffineTransform
itk::simple::AffineTransform::AffineTransform(unsigned int dimensions) -
AffineTransform
itk::simple::AffineTransform::AffineTransform(unsigned int dimensions)
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
-
delete
-
getName
-
getTranslation
std::vector<double> itk::simple::AffineTransform::GetTranslation() const parameters -
setTranslation
Self& itk::simple::AffineTransform::SetTranslation(const std::vector< double > &translation) -
setMatrix
Self& itk::simple::AffineTransform::SetMatrix(const std::vector< double > &matrix) -
getMatrix
std::vector<double> itk::simple::AffineTransform::GetMatrix() const -
setCenter
Self& itk::simple::AffineTransform::SetCenter(const std::vector< double > ¶ms) fixed parameter -
getCenter
std::vector<double> itk::simple::AffineTransform::GetCenter() const -
scale
Self& itk::simple::AffineTransform::Scale(double factor, bool pre=false) -
scale
Self& itk::simple::AffineTransform::Scale(double factor, bool pre=false) -
scale
public void scale(double factor, boolean pre) Self& itk::simple::AffineTransform::Scale(double factor, bool pre=false) -
scale
public void scale(double factor) Self& itk::simple::AffineTransform::Scale(double factor, bool pre=false) -
shear
public void shear(int axis1, int axis2, double coef, boolean pre) Self& itk::simple::AffineTransform::Shear(int axis1, int axis2, double coef, bool pre=false) -
shear
public void shear(int axis1, int axis2, double coef) Self& itk::simple::AffineTransform::Shear(int axis1, int axis2, double coef, bool pre=false) -
translate
Self& itk::simple::AffineTransform::Translate(const std::vector< double > &offset, bool pre=false) -
translate
Self& itk::simple::AffineTransform::Translate(const std::vector< double > &offset, bool pre=false) -
rotate
public void rotate(int axis1, int axis2, double angle, boolean pre) Self& itk::simple::AffineTransform::Rotate(int axis1, int axis2, double angle, bool pre=false) -
rotate
public void rotate(int axis1, int axis2, double angle) Self& itk::simple::AffineTransform::Rotate(int axis1, int axis2, double angle, bool pre=false)
-