Class AffineTransform
Represents an operator that creates an affine transformation matrix specified by a translation, rotation and scale.
[WorkflowElementCategory(ElementCategory.Source)]
public class AffineTransform : Combinator<Mat>
- Inheritance
-
AffineTransform
- Inherited Members
Constructors
AffineTransform()
Initializes a new instance of the AffineTransform class.
public AffineTransform()
Properties
Pivot
Gets or sets the pivot around which to scale or rotate the image.
public Point2f Pivot { get; set; }
Property Value
Rotation
Gets or sets the rotation angle around the pivot, in radians.
[Range(-3.141592653589793, 3.141592653589793)]
public float Rotation { get; set; }
Property Value
Scale
Gets or sets the scale factor to apply to individual image dimensions.
public Point2f Scale { get; set; }
Property Value
Translation
Gets or sets the translation vector to apply to the image.
public Point2f Translation { get; set; }
Property Value
Methods
Process()
Generates an observable sequence that contains an affine transformation matrix specified by a translation, rotation and scale.
public IObservable<Mat> Process()
Returns
- IObservable<Mat>
A sequence containing a single instance of the Mat class representing an affine transformation matrix.
Process<TSource>(IObservable<TSource>)
Generates an observable sequence of affine transformation matrices using the specified translation, rotation and scale, and where each matrix is emitted only when an observable sequence emits a notification.
public override IObservable<Mat> Process<TSource>(IObservable<TSource> source)
Parameters
source
IObservable<TSource>The sequence containing the notifications used for emitting new affine transformation matrices.
Returns
- IObservable<Mat>
A sequence of Mat objects where each element represents an affine transformation matrix.
Type Parameters
TSource
The type of the elements in the
source
sequence.