
| Project ↗ | Documentation ↗ | — | Tutorials ↗ | How To's ↗ | Explanations ↗ | References |
| Entry ↗ | — | Sections ↘ | Permuted Sections ↘ | Names ↘ | Permuted Names ↘ | Strict ↘ | Implementations ↘ |
Documentation -- Reference Pages -- transform structure
Table Of Contents
Subsections
Operators
- aktive op align bottom
- aktive op align left
- aktive op align right
- aktive op align top
- aktive op center-origin x
- aktive op center-origin xy
- aktive op center-origin y
- aktive op center-origin z
- aktive op crop
- aktive op embed band black
- aktive op embed band copy
- aktive op embed bg
- aktive op embed black
- aktive op embed copy
- aktive op embed mirror
- aktive op embed tile
- aktive op embed white
- aktive op flip x
- aktive op flip y
- aktive op flip z
- aktive op if-then-else
- aktive op resize
- aktive op rotate any
- aktive op rotate ccw
- aktive op rotate cw
- aktive op rotate half
- aktive op sample decimate x
- aktive op sample decimate xy
- aktive op sample decimate y
- aktive op sample fill x
- aktive op sample fill xy
- aktive op sample fill y
- aktive op sample fill z
- aktive op sample interpolate x
- aktive op sample interpolate xy
- aktive op sample interpolate y
- aktive op sample replicate x
- aktive op sample replicate xy
- aktive op sample replicate y
- aktive op sample replicate z
- aktive op sample sub x
- aktive op sample sub xy
- aktive op sample sub y
- aktive op sample sub z
- aktive op scroll x
- aktive op scroll y
- aktive op scroll z
- aktive op select x
- aktive op select y
- aktive op select z
- aktive op split x
- aktive op split y
- aktive op split z
- aktive op swap xy
- aktive op swap xz
- aktive op swap yz
- aktive op take x
- aktive op take y
- aktive op take z
- aktive op transpose
- aktive op transverse
Operators
↑ aktive op align bottom
Syntax: aktive op align bottom src ?(param value)...? [→ definition]
Returns image aligned to a border in a larger image.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| size | uint | Desired size of the image along the y-axis. | |
| border | str | black | Method of embedding to use. |
Examples
| @1
|
aktive op align bottom @1 size 160 border mirror
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 -32 128 160 1) |
↑ aktive op align left
Syntax: aktive op align left src ?(param value)...? [→ definition]
Returns image aligned to a border in a larger image.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| size | uint | Desired size of the image along the x-axis. | |
| border | str | black | Method of embedding to use. |
Examples
| @1
|
aktive op align left @1 size 160 border mirror
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 160 128 1) |
↑ aktive op align right
Syntax: aktive op align right src ?(param value)...? [→ definition]
Returns image aligned to a border in a larger image.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| size | uint | Desired size of the image along the x-axis. | |
| border | str | black | Method of embedding to use. |
Examples
| @1
|
aktive op align right @1 size 160 border mirror
|
|---|---|
geometry(0 0 128 128 1) |
geometry(-32 0 160 128 1) |
↑ aktive op align top
Syntax: aktive op align top src ?(param value)...? [→ definition]
Returns image aligned to a border in a larger image.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| size | uint | Desired size of the image along the y-axis. | |
| border | str | black | Method of embedding to use. |
Examples
| @1
|
aktive op align top @1 size 160 border mirror
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 160 1) |
↑ aktive op center-origin x
Syntax: aktive op center-origin x src [→ definition]
Returns image where the center column of the input is shifted to the origin of the x axis.
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
aktive op center-origin x @1
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |
↑ aktive op center-origin xy
Syntax: aktive op center-origin xy src [→ definition]
Returns image where the center pixel of the input is shifted to the origin.
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
aktive op center-origin xy @1
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |
↑ aktive op center-origin y
Syntax: aktive op center-origin y src [→ definition]
Returns image where the center row of the input is shifted to the origin of the y axis.
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
aktive op center-origin y @1
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |
↑ aktive op center-origin z
Syntax: aktive op center-origin z src [→ definition]
Returns image where the center band of the input is shifted to the origin of the z axis.
| Input | Description |
|---|---|
| src | Source image |
↑ aktive op crop
Syntax: aktive op crop src ?(param value)...? [→ definition]
Returns image containing a rectangular subset of input, specified by the amount of rows and columns to remove from the four borders.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| left | uint | 0 | Number of columns to remove from the left input border |
| right | uint | 0 | Number of columns to remove from the right input border |
| top | uint | 0 | Number of rows to remove from the top input border |
| bottom | uint | 0 | Number of rows to remove from the bottom input border |
Examples
| @1
|
aktive op crop @1 left 10 right 20 top 30 bottom 50
|
|---|---|
geometry(0 0 128 128 1) |
geometry(10 30 98 48 1) |
↑ aktive op embed band black
Syntax: aktive op embed band black src ?(param value)...? [→ definition]
Returns image embedding the input into a set of black bands.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| up | uint | 0 | Number of bands to add before the image bands |
| down | uint | 0 | Number of bands to add after the image bands |
↑ aktive op embed band copy
Syntax: aktive op embed band copy src ?(param value)...? [→ definition]
Returns image embedding the input into a set of copied bands.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| up | uint | 0 | Number of first band copies to add before the image bands |
| down | uint | 0 | Number of last band copies to add after the image bands |
↑ aktive op embed bg
Syntax: aktive op embed bg src ?(param value)...? [→ definition]
Returns an image embedding the input into an arbitrarily colored border. The color is specified through the band values.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| left | uint | 0 | Number of columns to extend the left input border by |
| right | uint | 0 | Number of columns to extend the right input border by |
| top | uint | 0 | Number of rows to extend the top input border by |
| bottom | uint | 0 | Number of rows to extend the bottom input border by |
| values | double[] | Band values |
Examples
| @1
|
aktive op embed bg @1 left 32 right 32 top 32 bottom 32 values 0.5
|
|---|---|
geometry(0 0 128 128 1) |
geometry(-32 -32 192 192 1) |
↑ aktive op embed black
Syntax: aktive op embed black src ?(param value)...? [→ definition]
Returns an image embedding the input into a black border.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| left | uint | 0 | Number of columns to extend the left input border by |
| right | uint | 0 | Number of columns to extend the right input border by |
| top | uint | 0 | Number of rows to extend the top input border by |
| bottom | uint | 0 | Number of rows to extend the bottom input border by |
Examples
| @1
|
aktive op embed black @1 left 32 right 32 top 32 bottom 32
|
|---|---|
geometry(0 0 128 128 1) |
geometry(-32 -32 192 192 1) |
↑ aktive op embed copy
Syntax: aktive op embed copy src ?(param value)...? [→ definition]
Returns an image embedding the input into a border made from the replicated input edges.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| left | uint | 0 | Number of columns to extend the left input border by |
| right | uint | 0 | Number of columns to extend the right input border by |
| top | uint | 0 | Number of rows to extend the top input border by |
| bottom | uint | 0 | Number of rows to extend the bottom input border by |
Examples
| @1
|
aktive op embed copy @1 left 32 right 32 top 32 bottom 32
|
|---|---|
geometry(0 0 128 128 1) |
geometry(-32 -32 192 192 1) |
↑ aktive op embed mirror
Syntax: aktive op embed mirror src ?(param value)...? [→ definition]
Returns an image embedding the input into a border made from the replicated mirrored input.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| left | uint | 0 | Number of columns to extend the left input border by |
| right | uint | 0 | Number of columns to extend the right input border by |
| top | uint | 0 | Number of rows to extend the top input border by |
| bottom | uint | 0 | Number of rows to extend the bottom input border by |
Examples
| @1
|
aktive op embed mirror @1 left 32 right 32 top 32 bottom 32
| ||
|---|---|---|---|
geometry(0 0 128 128 1) |
|
↑ aktive op embed tile
Syntax: aktive op embed tile src ?(param value)...? [→ definition]
Returns an image embedding the input into a border made from the replicated input.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| left | uint | 0 | Number of columns to extend the left input border by |
| right | uint | 0 | Number of columns to extend the right input border by |
| top | uint | 0 | Number of rows to extend the top input border by |
| bottom | uint | 0 | Number of rows to extend the bottom input border by |
Examples
| @1
|
aktive op embed tile @1 left 32 right 32 top 32 bottom 32
| ||
|---|---|---|---|
geometry(0 0 128 128 1) |
|
↑ aktive op embed white
Syntax: aktive op embed white src ?(param value)...? [→ definition]
Returns an image embedding the input into a white border.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| left | uint | 0 | Number of columns to extend the left input border by |
| right | uint | 0 | Number of columns to extend the right input border by |
| top | uint | 0 | Number of rows to extend the top input border by |
| bottom | uint | 0 | Number of rows to extend the bottom input border by |
Examples
| @1
|
aktive op embed white @1 left 32 right 32 top 32 bottom 32
|
|---|---|
geometry(0 0 128 128 1) |
geometry(-32 -32 192 192 1) |
↑ aktive op flip x
Syntax: aktive op flip x src [→ definition]
Returns image which mirrors the input along the x-axis.
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
aktive op flip x @1
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |
↑ aktive op flip y
Syntax: aktive op flip y src [→ definition]
Returns image which mirrors the input along the y-axis.
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
aktive op flip y @1
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |
↑ aktive op flip z
Syntax: aktive op flip z src [→ definition]
Returns image which mirrors the input along the z-axis.
| Input | Description |
|---|---|
| src | Source image |
↑ aktive op if-then-else
Syntax: aktive op if-then-else selector then else [→ definition]
Choose between inputs then and else, based on the content of the selector.
All images have to have the same width and height. The selector has to be single-band. The other images may have arbitrary depth, as long as both have the same.
The selector content is clamped to 0..1, and fractional values are rounded down to integer. 1-pixels in the selector pass the same pixel from then into the result, whereas 0-pixels in the selector pass the same pixel from else instead.
| Input | Description |
|---|---|
| selector | Binary selections |
| then | Image chosen where selector == 1. |
| else | Image chosen where selector == 0. |
↑ aktive op resize
Syntax: aktive op resize src ?(param value)...? [→ definition]
Returns image resized to the specified width and height.
This is a convenience operator implemented on top of aktive op transform by.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| interpolate | str | bilinear | Interpolation method to use |
| width | uint | Desired width of the result | |
| height | uint | Desired height of the result |
Examples
| @1
|
aktive op resize @1 width 21 height 29
|
|---|---|
geometry(0 0 256 256 3) |
geometry(0 0 21 29 3) |
↑ aktive op rotate any
Syntax: aktive op rotate any src ?(param value)...? [→ definition]
Returns image rotating the input at an arbitrary angle around an arbitrary center. The default center is the image center.
This is a convenience operator implemented on top of aktive op transform by.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | double | In degrees, angle to rotate | |
| around | point | {} | Rotation center. Default is the origin |
| interpolate | str | bilinear | Interpolation method to use |
Examples
| @1
|
aktive op rotate any @1 by 33 around {32 32}
| ||
|---|---|---|---|
geometry(0 0 256 256 3) |
|
↑ aktive op rotate ccw
Syntax: aktive op rotate ccw src [→ definition]
Returns image rotating the input 90 degrees counter clockwise
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
aktive op rotate ccw @1
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |
↑ aktive op rotate cw
Syntax: aktive op rotate cw src [→ definition]
Returns image rotating the input 90 degrees clockwise.
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
aktive op rotate cw @1
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |
↑ aktive op rotate half
Syntax: aktive op rotate half src [→ definition]
Returns image rotating the input 180 degrees (counter) clockwise.
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
aktive op rotate half @1
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |
↑ aktive op sample decimate x
Syntax: aktive op sample decimate x src ?(param value)...? [→ definition]
Returns image with the input decimated along the x-axis according to the decimation factor (>= 1).
This is accomplished by sub sampling the result of a lowpass filter applied to the input.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | 2 | Decimation factor, range 2... |
| embed | str | mirror | Embedding to apply to prevent input from shrinking before sampled down. |
Examples
| @1
|
aktive op sample decimate x @1 by 4
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 32 128 1) |
↑ aktive op sample decimate xy
Syntax: aktive op sample decimate xy src ?(param value)...? [→ definition]
Returns image with the input decimated along both x and y axes according to the decimation factor (>= 1).
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | 2 | Decimation factor, range 2... |
| embed | str | mirror | Embedding to apply to prevent input from shrinking before sampled down. |
Examples
| @1
|
aktive op sample decimate xy @1 by 4
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 32 32 1) |
↑ aktive op sample decimate y
Syntax: aktive op sample decimate y src ?(param value)...? [→ definition]
Returns image with the input decimated along the y-axis according to the decimation factor (>= 1).
This is accomplished by sub sampling the result of a lowpass filter applied to the input.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | 2 | Decimation factor, range 2... |
| embed | str | mirror | Embedding to apply to prevent input from shrinking before sampled down. |
Examples
| @1
|
aktive op sample decimate y @1 by 4
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 32 1) |
↑ aktive op sample fill x
Syntax: aktive op sample fill x src ?(param value)...? [→ definition]
Returns image where the input is "zero-stuffed" along the x-axis according to the stuffing factor S (>= 1). The S-1 gaps in the result are set to the given fill value, with zero, i.e. 0, used by default.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | Stuff factor, range 2... | |
| fill | double | 0 | Pixel fill value |
Examples
| @1
|
aktive op sample fill x @1 by 4 fill 0.5
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 512 128 1) |
↑ aktive op sample fill xy
Syntax: aktive op sample fill xy src ?(param value)...? [→ definition]
Returns image where the input is "zero-stuffed" along both x and y axes according to the stuffing factor S (>= 1). The S-1 gaps in the result are set to the given fill value, with zero, i.e. 0, used by default.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | 2 | Stuff factor, range 2... |
| fill | double | 0 | Pixel fill value |
Examples
| @1
|
aktive op sample fill xy @1 by 4 fill 0.5
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 512 512 1) |
↑ aktive op sample fill y
Syntax: aktive op sample fill y src ?(param value)...? [→ definition]
Returns image where the input is "zero-stuffed" along the y-axis according to the stuffing factor S (>= 1). The S-1 gaps in the result are set to the given fill value, with zero, i.e. 0, used by default.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | Stuff factor, range 2... | |
| fill | double | 0 | Pixel fill value |
Examples
| @1
|
aktive op sample fill y @1 by 4 fill 0.5
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 512 1) |
↑ aktive op sample fill z
Syntax: aktive op sample fill z src ?(param value)...? [→ definition]
Returns image where the input is "zero-stuffed" along the z-axis according to the stuffing factor S (>= 1). The S-1 gaps in the result are set to the given fill value, with zero, i.e. 0, used by default.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | Stuff factor, range 2... | |
| fill | double | 0 | Pixel fill value |
↑ aktive op sample interpolate x
Syntax: aktive op sample interpolate x src ?(param value)...? [→ definition]
Returns image with the input interpolated along the x-axis according to the interpolation factor (>= 1).
This is accomplished by low-pass filtering applied to the result of zero-stuffing the input.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | 2 | Interpolation factor, range 2... |
| embed | str | mirror | Embedding to apply to prevent input from shrinking before sampled down. |
Examples
| @1
|
aktive op sample interpolate x @1 by 4
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 512 128 1) |
↑ aktive op sample interpolate xy
Syntax: aktive op sample interpolate xy src ?(param value)...? [→ definition]
Returns image with the input interpolated along both x and y axes according to the interpolation factor (>= 1).
This is accomplished by low-pass filtering applied to the result of zero-stuffing the input.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | 2 | Interpolation factor, range 2... |
| embed | str | mirror | Embedding to apply to prevent input from shrinking before sampled down. |
Examples
| @1
|
aktive op sample interpolate xy @1 by 4
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 512 512 1) |
↑ aktive op sample interpolate y
Syntax: aktive op sample interpolate y src ?(param value)...? [→ definition]
Returns image with the input interpolated along the y-axis according to the interpolation factor (>= 1).
This is accomplished by low-pass filtering applied to the result of zero-stuffing the input.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | 2 | Interpolation factor, range 2... |
| embed | str | mirror | Embedding to apply to prevent input from shrinking before sampled down. |
Examples
| @1
|
aktive op sample interpolate y @1 by 4
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 512 1) |
↑ aktive op sample replicate x
Syntax: aktive op sample replicate x src (param value)... [→ definition]
Returns image where the input is stretched along the x-axis according to the stretching factor (>= 1), and the gaps are filled by replicating the preceding non-gap pixel.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | Stretch factor, range 2... |
Examples
| @1
|
aktive op sample replicate x @1 by 4
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 512 128 1) |
↑ aktive op sample replicate xy
Syntax: aktive op sample replicate xy src ?(param value)...? [→ definition]
Returns image where the input is stretched along both x and y axes according to the stretching factor (>= 1), and the gaps are filled by replicating the preceding non-gap pixel.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | 2 | Stretch factor, range 2... |
Examples
| @1
|
aktive op sample replicate xy @1 by 4
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 512 512 1) |
↑ aktive op sample replicate y
Syntax: aktive op sample replicate y src (param value)... [→ definition]
Returns image where the input is stretched along the y-axis according to the stretching factor (>= 1), and the gaps are filled by replicating the preceding non-gap pixel.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | Stretch factor, range 2... |
Examples
| @1
|
aktive op sample replicate y @1 by 4
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 512 1) |
↑ aktive op sample replicate z
Syntax: aktive op sample replicate z src (param value)... [→ definition]
Returns image where the input is stretched along the z-axis according to the stretching factor (>= 1), and the gaps are filled by replicating the preceding non-gap pixel.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | Stretch factor, range 2... |
↑ aktive op sample sub x
Syntax: aktive op sample sub x src ?(param value)...? [→ definition]
Returns image with the input sampled down along the x-axis according to the sampling factor S (>= 1). The result keeps every S'th pixel of the input. S-1 pixels after every kept pixel are removed.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | 2 | Sampling factor, range 2... |
Examples
| @1
|
aktive op sample sub x @1 by 4
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 32 128 1) |
↑ aktive op sample sub xy
Syntax: aktive op sample sub xy src ?(param value)...? [→ definition]
Returns image with the input sampled down along both x and y axes according to the sampling factor S (>= 1). The result keeps every S'th pixel of the input. S-1 pixels after every kept pixel are removed.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | 2 | Sampling factor, range 2... |
Examples
| @1
|
aktive op sample sub xy @1 by 4
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 32 32 1) |
↑ aktive op sample sub y
Syntax: aktive op sample sub y src ?(param value)...? [→ definition]
Returns image with the input sampled down along the y-axis according to the sampling factor S (>= 1). The result keeps every S'th pixel of the input. S-1 pixels after every kept pixel are removed.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | 2 | Sampling factor, range 2... |
Examples
| @1
|
aktive op sample sub y @1 by 4
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 32 1) |
↑ aktive op sample sub z
Syntax: aktive op sample sub z src ?(param value)...? [→ definition]
Returns image with the input sampled down along the z-axis according to the sampling factor S (>= 1). The result keeps every S'th pixel of the input. S-1 pixels after every kept pixel are removed.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| by | uint | 2 | Sampling factor, range 2... |
↑ aktive op scroll x
Syntax: aktive op scroll x src (param value)... [→ definition]
Returns image with the pixels of the input shifted along the x axis so that the N'th column becomes the origin on that axis.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| offset | uint | x scroll offset |
Examples
| @1
|
aktive op scroll x @1 offset 32
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |
↑ aktive op scroll y
Syntax: aktive op scroll y src (param value)... [→ definition]
Returns image with the pixels of the input shifted along the y axis so that the N'th row becomes the origin on that axis.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| offset | uint | y scroll offset |
Examples
| @1
|
aktive op scroll y @1 offset 32
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |
↑ aktive op scroll z
Syntax: aktive op scroll z src (param value)... [→ definition]
Returns image with the pixels of the input shifted along the z axis so that the N'th band becomes the origin on that axis.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| offset | uint | z scroll offset |
↑ aktive op select x
Syntax: aktive op select x src ?(param value)...? [→ definition]
Returns image containing a contiguous subset of the input's columns.
The result has a properly reduced width.
The other two dimension are unchanged.
The 2D location of the first cell of the input going into the
result is the location of the result.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| from | uint | The input's first column to be placed into the result. | |
| to | uint | from | The input's last column to be placed into the result. If not specified defaults to the first. |
Examples
| @1
|
aktive op select x @1 from 20 to 50
|
|---|---|
geometry(0 0 128 128 1) |
geometry(20 0 31 128 1) |
↑ aktive op select y
Syntax: aktive op select y src ?(param value)...? [→ definition]
Returns image containing a contiguous subset of the input's rows.
The result has a properly reduced height.
The other two dimension are unchanged.
The 2D location of the first cell of the input going into the
result is the location of the result.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| from | uint | The input's first row to be placed into the result. | |
| to | uint | from | The input's last row to be placed into the result. If not specified defaults to the first. |
Examples
| @1
|
aktive op select y @1 from 20 to 50
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 20 128 31 1) |
↑ aktive op select z
Syntax: aktive op select z src ?(param value)...? [→ definition]
Returns image containing a contiguous subset of the input's bands.
The result has a properly reduced depth.
The other two dimension are unchanged.
The 2D location of the first cell of the input going into the
result is the location of the result.
| Input | Description |
|---|---|
| src | Source image |
| Parameter | Type | Default | Description |
|---|---|---|---|
| from | uint | The input's first band to be placed into the result. | |
| to | uint | from | The input's last band to be placed into the result. If not specified defaults to the first. |
↑ aktive op split x
Syntax: aktive op split x src [→ definition]
Returns list containing each column of the input as separate image.
| Input | Description |
|---|---|
| src | Source image |
↑ aktive op split y
Syntax: aktive op split y src [→ definition]
Returns list containing each row of the input as separate image.
| Input | Description |
|---|---|
| src | Source image |
↑ aktive op split z
Syntax: aktive op split z src [→ definition]
Returns list containing each band of the input as separate image.
| Input | Description |
|---|---|
| src | Source image |
↑ aktive op swap xy
Syntax: aktive op swap xy src [→ definition]
Returns image with the x- and y-axes of the input exchanged.
The location of the image is not changed.
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
aktive op swap xy @1
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |
↑ aktive op swap xz
Syntax: aktive op swap xz src [→ definition]
Returns image with the x- and z-axes of the input exchanged.
The location of the image is not changed.
| Input | Description |
|---|---|
| src | Source image |
↑ aktive op swap yz
Syntax: aktive op swap yz src [→ definition]
Returns image with the y- and z-axes of the input exchanged.
The location of the image is not changed.
| Input | Description |
|---|---|
| src | Source image |
↑ aktive op take x
Syntax: aktive op take x index src [→ definition]
Selects column values from the source under the control of the single-column index.
Takes two inputs of the same height and depth. The index is single-column. Its height and depth match the source. The result image has the same geometry as the index.
The stored indices select, per result pixel, the column value to take from the source and place into the result.
Indices are clamped to the interval 0 ... #(columns-1) of the source. Fractional indices are rounded down to integer.
The locations of index and source are ignored. The result is placed at the coordinate origin/zero.
| Input | Description |
|---|---|
| index | Indices selecting the per-pixel column of the source. |
| src | Source the data is selected from. |
↑ aktive op take y
Syntax: aktive op take y index src [→ definition]
Selects row values from the source under the control of the single-row index.
Takes two inputs of the same width and depth. The index is single-row. Its width and depth match the source. The result image has the same geometry as the index.
The stored indices select, per result pixel, the row value to take from the source and place into the result.
Indices are clamped to the interval 0 ... #(rows-1) of the source. Fractional indices are rounded down to integer.
The locations of index and source are ignored. The result is placed at the coordinate origin/zero.
| Input | Description |
|---|---|
| index | Indices selecting the per-pixel row of the source. |
| src | Source the data is selected from. |
↑ aktive op take z
Syntax: aktive op take z index src [→ definition]
Selects band values from the source under the control of the single-band index.
Takes two inputs of the same width and height. The index is single-band. Its width and height match the source. The result image has the same geometry as the index.
The stored indices select, per result pixel, the band value to take from the source and place into the result.
Indices are clamped to the interval 0 ... #(bands-1) of the source. Fractional indices are rounded down to integer.
The locations of index and source are ignored. The result is placed at the coordinate origin/zero.
| Input | Description |
|---|---|
| index | Indices selecting the per-pixel band of the source. |
| src | Source the data is selected from. |
↑ aktive op transpose
Syntax: aktive op transpose src [→ definition]
Returns image with the input mirrored along the primary diagonal.
This is an alias of swap xy.
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
aktive op transpose @1
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |
↑ aktive op transverse
Syntax: aktive op transverse src [→ definition]
Returns image with the input mirrored along the secondary diagonal.
| Input | Description |
|---|---|
| src | Source image |
Examples
| @1
|
aktive op transverse @1
|
|---|---|
geometry(0 0 128 128 1) |
geometry(0 0 128 128 1) |