getParameters | R Documentation |
Retrieves the transformation parameters
getParameters(object)
object |
Object of the class SimilarityTransformation or AffineTransformation |
If the transformation object was initialized with control points, parameters can be retreived only after calling the method 'calculateParameters'.
A numeric vector with the transformation parameters.
German Carrillo
Iliffe, J. and Lott, R. Datums and map projections: For remote sensing, GIS and surveying. Section 4.9.3-4. pp.135-137, 2008.
SimilarityTransformation-class
AffineTransformation-class
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.