AKTIVE

Documentation
Login

Documentation

Project ↗ Documentation ↗ Tutorials ↗ How To's ↗ Explanations ↗ References
Entry ↗ Sections ↘ Permuted Sections ↘ Names ↘ Permuted Names ↘ Strict ↘ Implementations ↘

Documentation -- Reference Pages -- transform structure warp

Table Of Contents

Operators

Operators


aktive op transform by

Syntax: aktive op transform by transform src ?(param value)...? [→ definition]

Applies the projective forward transform to the source image, using some kind of pixel interpolation, and returns the result. The default interpolation is bilinear.

The necessary backward transformation is computed internally.

The result's domain is set to the domain of the forward transform applied to the input domain. Fractions are rounded to integers such that the actual bounding box is kept enclosed.

The result has depth of the image.

See aktive transform affine and its relatives for a set of operations creating transformations acceptable here.

The aktive op view operator is a useful means of focusing on the desired part of a transformation result.

This operator is strict in the 1st input. The projective matrix is materialized for the calculation of the backward transform.

Input Description
transform Affine forward transformation.
src The image to transform.
Parameter Type Default Description
interpolate str bilinear Interpolation method to use

Examples

@1
 
@2
(rotate by 30 around {10 50})
aktive op transform by @2 @1
 
@1
geometry(0 0 380 250 3)
0.8660-0.500026.3397
0.50000.86601.6987
0.00000.00001.0000
bframeaktive op transform by @2 @1
geometry(-98 1 454 407 3)

@1
 
@2
(scale x 0.5 y 1.5)
aktive op transform by @2 @1
 
@1
geometry(0 0 380 250 3)
0.50000.00000.0000
0.00001.50000.0000
0.00000.00001.0000
aktive op transform by @2 @1
geometry(0 0 191 375 3)

@1
 
@2
(shear x 20 y 10)
aktive op transform by @2 @1
 
@1
geometry(0 0 380 250 3)
1.00000.36400.0000
0.17631.06420.0000
0.00000.00001.0000
aktive op transform by @2 @1
geometry(0 0 471 333 3)

@1
 
@2
(reflect x)
aktive op transform by @2 @1
 
@1
geometry(0 0 380 250 3)
-1.00000.00000.0000
0.00001.00000.0000
0.00000.00001.0000
aktive op transform by @2 @1
geometry(-379 0 380 250 3)

@1
 
@2
(reflect y)
aktive op transform by @2 @1
 
@1
geometry(0 0 380 250 3)
1.00000.00000.0000
0.0000-1.00000.0000
0.00000.00001.0000
aktive op transform by @2 @1
geometry(0 -249 380 250 3)

@1
 
@2
(reflect line {50 260} b {150 -10})
aktive op transform by @2 @1
 
@1
geometry(0 0 380 250 3)
-0.7587-0.6514257.2979
-0.65140.758795.2955
0.00000.00001.0000
bframeaktive op transform by @2 @1
geometry(-192 -151 451 437 3)

@1
 
@2
(quadrilateral)
@3
 
aktive op view @3 port {0 0 100 100}
 
@1
geometry(0 0 380 250 3)
0.4944-0.41592.5504
0.34400.9460-74.8181
-0.0014-0.00231.2110
@3
geometry(-161 -61 1036 3006 3)
aktive op view @3 port {0 0 100 100}
geometry(0 0 100 100 3)


aktive op warp bicubic

Syntax: aktive op warp bicubic origins src [→ definition]

Returns an image generated by the application of the origin map to the image, with bicubic interpolation.

The result has the domain of the origin map, and the depth of the image.

See aktive transform affine and its relatives for a set of operations creating origin maps acceptable here.

Input Description
origins Origin map to wrap the src by.
src Image to warp by the origin.

References


aktive op warp bilinear

Syntax: aktive op warp bilinear origins src [→ definition]

Returns an image generated by the application of the origin map to the image, with bilinear interpolation.

The result has the domain of the origin map, and the depth of the image.

See aktive transform affine and its relatives for a set of operations creating origin maps acceptable here.

Input Description
origins Origin map to wrap the src by.
src Image to warp by the origin.

References


aktive op warp lanczos

Syntax: aktive op warp lanczos origins src [→ definition]

Returns an image generated by the application of the origin map to the image, with order-3 lanczos interpolation.

The result has the domain of the origin map, and the depth of the image.

See aktive transform affine and its relatives for a set of operations creating origin maps acceptable here.

Input Description
origins Origin map to wrap the src by.
src Image to warp by the origin.

References


aktive op warp near-neighbour

Syntax: aktive op warp near-neighbour origins src [→ definition]

Returns an image generated by the application of the origin map to the image, with nearest neighbour interpolation.

The result has the domain of the origin map, and the depth of the image.

See aktive transform affine and its relatives for a set of operations creating origin maps acceptable here.

Input Description
origins Origin map to wrap the src by.
src Image to warp by the origin.

References