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
- aktive op transform by
- aktive op warp bicubic
- aktive op warp bilinear
- aktive op warp lanczos
- aktive op warp near-neighbour
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
| |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() geometry(0 0 380 250 3) |
|
|
@1
|
@2
(scale x 0.5 y 1.5) |
aktive op transform by @2 @1
| |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() geometry(0 0 380 250 3) |
|
![]() geometry(0 0 191 375 3) |
@1
|
@2
(shear x 20 y 10) |
aktive op transform by @2 @1
| |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() geometry(0 0 380 250 3) |
|
![]() geometry(0 0 471 333 3) |
@1
|
@2
(reflect x) |
aktive op transform by @2 @1
| |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() geometry(0 0 380 250 3) |
|
![]() geometry(-379 0 380 250 3) |
@1
|
@2
(reflect y) |
aktive op transform by @2 @1
| |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() geometry(0 0 380 250 3) |
|
![]() geometry(0 -249 380 250 3) |
@1
|
@2
(reflect line {50 260} b {150 -10}) |
aktive op transform by @2 @1
| |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() geometry(0 0 380 250 3) |
|
|
@1
|
@2
(quadrilateral) |
@3
|
aktive op view @3 port {0 0 100 100}
| |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() geometry(0 0 380 250 3) |
|
![]() geometry(-161 -61 1036 3006 3) |
![]() 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 . |