AffineTransform2D

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

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 Params
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
trait SomeOut[StreamOut]
trait Lazy
trait GE
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