AffineTransform2D

final case class AffineTransform2D(in: D, widthIn: I, heightIn: I, widthOut: I, heightOut: I, m00: D, m10: D, m01: D, m11: D, m02: D, m12: D, wrap: I, rollOff: D, kaiserBeta: D, zeroCrossings: I) extends SingleOut[Double]

An affine transformation UGen for image rotation, scaling, translation, shearing. It uses either a sinc-based band-limited resampling algorithm, or bicubic interpolation, depending on the zeroCrossings parameter.

All window defining parameters (widthIn, heightIn, widthOut, heightOut) are polled once per matrix. All matrix and filter parameters are polled one per output pixel.

Value parameters:
heightIn

the height (number of rows) of the input matrix

heightOut

the height (number of rows) of the output matrix. the special value zero (default) means it is the same as heightIn.

in

the signal to resample

kaiserBeta

the FIR windowing function's parameter

m00

coefficient of the first column of the first row (scale-x)

m01

coefficient of the second column of the first row (shear-x)

m02

coefficient of the third column of the first row (translate-x)

m10

coefficient of the first column of the second row (shear-y)

m11

coefficient of the second column of the second row (scale-y)

m12

coefficient of the third column of the second row (translate-y)

rollOff

the FIR anti-aliasing roll-off width. Between zero and one.

widthIn

the width (number of columns) of the input matrix

widthOut

the width (number of columns) of the output matrix. the special value zero (default) means it is the same as widthIn.

wrap

if non-zero, wraps coordinates around the input images boundaries. TODO: currently wrap = 0 is broken if using sinc interpolation!

zeroCrossings

the number of zero-crossings in the truncated and windowed sinc FIR. If zero, algorithm uses bicubic interpolation instead.

See also:
Companion:
object
trait Serializable
trait SingleOut[Double]
trait Lazy[Double]
trait GE[Double]
trait Expander[UGenInLike[Double]]
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

final def name: String
Inherited from:
UGenSource
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product