Spark Online Training by Edureka

SimilarityTransformation: Create an SimilarityTransformation object

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Creates objects of class SimilarityTransformation from control points or directly from parameters

Usage

1
2
SimilarityTransformation(controlPoints = data.frame(), 
parameters = numeric())

Arguments

controlPoints

data.frame containing control point coordinates arranged in four (4) columns: X source, Y source, X target, Y target.

parameters

A vector of four (4) parameters for representing the transformation, namely: a, b, c and d, where
x' = ax + by + c
y' = ay - bx + d

Details

Both controlPoints and parameters are optional, but one has to be given. In the case of the latter, the name of the argument has to be specified, e.g., SimilarityTransformation(parameters=c(1,2,3,4))

Value

Object of the class SimilarityTransformation

Author(s)

German Carrillo

See Also

SimilarityTransformation-class

Examples

1
st <- SimilarityTransformation(parameters=c(1,2,3,4))


Search within the vec2dtransf package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.