# Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.
BUILT-IN WOLFRAM LANGUAGE SYMBOL

# FindGeometricTransform

FindGeometricTransform[pts1,pts2]
finds a geometric transformation that aligns positions specified by with , returning the alignment error together with the transformation function.

FindGeometricTransform[ref,{pts1,pts2,}]
finds geometric transformations that align each of the with ref.

FindGeometricTransform[{pts1,pts2,}]
finds geometric transformations that align each of the with .

## Details and OptionsDetails and Options

• FindGeometricTransform returns an expression of the form , where err is an estimate of the average alignment error, and trfun is a transformation function. The function trfun can be applied to the positions to align them with the positions .
• The geometries and can be given as lists of position coordinates or Wolfram Language graphics objects.
• FindGeometricTransform[image1,image2] finds the geometric transformation to align 2D or 3D images.
• FindGeometricTransform works with points in any dimensions as well as with built-in 2D and 3D graphics primitives.
• The following options can be specified:
•  Method Automatic alignment method to use TransformationClass Automatic geometrical relation between images
• By default, the most suitable alignment method and transformation class are used for calculating the transformation.
• Available fitting methods:
•  "Linear" linear solver based on SVD "RANSAC" random sample consensus method "FindFit" uses FindFit {"ImageAlign",method} ImageAlign transformation using the given method
• With the setting , some positions may be considered as outliers and may not be used to determine the geometric transformation.
• Possible settings for the TransformationClass option include:
•  "Translation" translation only "Rigid" translation and rotation "Similarity" translation, rotation, and scaling "Affine" linear transformation and translation "Perspective" linear fractional transformation

## ExamplesExamplesopen allclose all

### Basic Examples  (2)Basic Examples  (2)

Determine the spatial transformation between two sets of positions:

 Out[1]=

Find the similarity transformation between two sets of two points:

 Out[1]=