vec2dtransf (version 1.1)

getParameters: Get tranformation parameters

Description

Retrieves the transformation parameters

Usage

getParameters(object)

Arguments

object

Object of the class SimilarityTransformation or AffineTransformation

Value

A numeric vector with the transformation parameters.

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
# NOT RUN {
# 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 DataCamp Workspace