Learn R Programming

vec2dtransf (version 1.1.3)

getParameters: Get tranformation parameters

Description

Retrieves the transformation parameters

Usage

getParameters(object)

Value

A numeric vector with the transformation parameters.

Arguments

object

Object of the class SimilarityTransformation or AffineTransformation

Author

German Carrillo

Details

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

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

Run this code
# 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) 

Run the code above in your browser using DataLab