| |
|
| java.lang.Object org.geotools.referencing.operation.builder.MathTransformBuilder org.geotools.referencing.operation.builder.ProjectiveTransformBuilder org.geotools.referencing.operation.builder.AffineTransformBuilder
AffineTransformBuilder | public class AffineTransformBuilder extends ProjectiveTransformBuilder (Code) | | Builds
setup as Affine transformation from a list of
. The calculation uses least square method.
The Affine transform equation:
[ x'] [ m00 m01 m02 ] [ x ] [ m00x + m01y + m02 ]
[ y'] = [ m10 m11 m12 ] [ y ] = [ m10x + m11y + m12 ]
[ 1 ] [ 0 0 1 ] [ 1 ] [ 1 ]
x' = m * x In the case that we have more identical points we can
write it like this (in Matrix):
[ x'1 ] [ x1 y1 1 0 0 0 ] [ m00 ]
[ x'2 ] [ x2 y2 1 0 0 0 ] [ m01 ]
[ . ] [ . ] [ m02 ]
[ . ] [ . ] * [ m10 ]
[ x'n ] = [ xn yn 1 0 0 0 ] [ m11 ]
[ y'1 ] [ 0 0 0 x1 y1 1 ] [ m12 ]
[ y'2 ] [ 0 0 0 x2 y2 1 ]
[ . ] [ . ]
[ . ] [ . ]
[ y'n ] [ 0 0 0 xn yn 1 ]
x' = A*m Using the least square method we get this result:
m = (ATA)-1 ATx'
since: 2.4 version: $Id: AffineTransformBuilder.java 28982 2008-01-28 16:27:33Z acuster $ author: Jan Jezek |
AffineTransformBuilder | protected AffineTransformBuilder()(Code) | | |
AffineTransformBuilder | public AffineTransformBuilder(List vectors) throws MismatchedSizeException, MismatchedDimensionException, MismatchedReferenceSystemException(Code) | | Creates AffineTransformBuilder for the set of properties.
Parameters: vectors - list of |
fillAMatrix | protected void fillAMatrix()(Code) | | |
getMinimumPointCount | public int getMinimumPointCount()(Code) | | Returns the minimum number of points required by this builder,
which is 3.
the minimum number of points required by this builder, which is3. |
getProjectiveMatrix | protected GeneralMatrix getProjectiveMatrix()(Code) | | Returns the matrix for Projective transformation setup as
Affine. The M matrix looks like this:
[ m00 m01 m02 ]
[ m10 m11 m12 ]
[ 0 0 1 ]
Matrix M. |
Fields inherited from org.geotools.referencing.operation.builder.MathTransformBuilder | final protected MathTransformFactory mtFactory(Code)(Java Doc)
|
|
|
|