SimilarityTransform2D

data class SimilarityTransform2D(val a: Double, val b: Double, val tx: Double, val ty: Double)

2D similarity transform (uniform scale, rotation, and translation) mapping source image coordinates (x, y) to aligned target crop coordinates (x', y'):

x' = a * x - b * y + tx y' = b * x + a * y + ty

where a = scale * cos(theta) and b = scale * sin(theta).

Constructors

Link copied to clipboard
constructor(a: Double, b: Double, tx: Double, ty: Double)

Properties

Link copied to clipboard
val a: Double
Link copied to clipboard
val b: Double
Link copied to clipboard
val tx: Double
Link copied to clipboard
val ty: Double