Constructor
new AffineTransformAugmenter(opts, keepSizeopt)
Parameters:
| Name | Type | Attributes | Default | Description | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| opts | Object | options Properties
 | |||||||||||||||||||||||||||
| keepSize | BooleanArgument | <optional> | false | If true, the output image plane size will be fitted to the distorted image size, i.e. images rotated by 45deg will not be partially outside of the image plane. WARNING : not implemented yet | |||||||||||||||||||||||||
| opts.borderValue | ColorArgument | <optional> | [0,0,0] | if borderType is "constant" this is used as border pixel values | |||||||||||||||||||||||||
| opts.borderType | BorderTypeArgument | <optional> | "constant" | "constant", "replicate", "transparent" | 
- Source:
Examples
// Simple usage, Affine transform with scale change
ia.affine({scale: 1.2});// Affine transform with rotation of 90° and random scale between 100% and 150%
ia.affine({scale: h.number(1, 1.5), rotate: 90});