getParameters: Get tranformation parameters

getParametersR Documentation

Get tranformation parameters

Description

Retrieves the transformation parameters

Usage

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

# 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) 

vec2dtransf documentation built on Aug. 23, 2023, 5:07 p.m.