Get tranformation parameters

Share:

Description

Retrieves the transformation parameters

Usage

1
getParameters(object)

Arguments

object

Object of the class SimilarityTransformation or AffineTransformation

Details

If the transformation object was initialized with control points, parameters can be retreived only after calling the method 'calculateParameters'.

Value

A numeric vector with the transformation parameters.

Author(s)

German Carrillo

References

Iliffe, J. and Lott, R. Datums and map projections: For remote sensing, GIS and surveying. Section 4.9.3-4. pp.135-137, 2008.

See Also

SimilarityTransformation-class AffineTransformation-class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# From parameters, similarity transformation
st <- SimilarityTransformation(parameters=c(1,2,3,4))
getParameters(st)

# From parameters, affine transformation
at <- AffineTransformation(parameters=c(1,2,3,4,5,6))
getParameters(at)

# From control points, affine transformation
data(control.points)
at2 <- AffineTransformation(control.points[2:5])
getParameters(at2) # Still unknown parameters
calculateParameters(at2)
getParameters(at2)