AKTIVE

Documentation
Login

Documentation

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

Documentation -- Reference Pages -- generator virtual

Table Of Contents

Subsections

Operators

Operators


aktive image cbar

Syntax: aktive image cbar ?(param value)...? [→ definition]

Returns square single-band image containing a cross diagonal bar. The image has size 2*radius + 1 squared.

Parameter Type Default Description
radius uint 1 Radius of the cross diagonal bar.
width uint 0 Width of the element. Default 0. Has to be less or equal to the radius.

Examples

aktive image cbar radius 32 width 8
 
aktive image cbar radius 32 width 8
geometry(0 0 65 65 1)


aktive image checkers

Syntax: aktive image checkers ?(param value)...? [→ definition]

Returns image containing a black/white checker board.

Parameter Type Default Description
width uint Width of the returned image
height uint Height of the returned image
offset uint 0 Pattern offset
black uint 8 Width of the black area
white uint 8 Width of the white area

Examples

aktive image checkers width 128 height 128
 
aktive image checkers width 128 height 128
geometry(0 0 128 128 1)

aktive image checkers width 128 height 128 black 16 white 32
 
aktive image checkers width 128 height 128 black 16 white 32
geometry(0 0 128 128 1)

aktive image checkers width 128 height 128 black 16 white 32 offset 8
 
aktive image checkers width 128 height 128 black 16 white 32 offset 8
geometry(0 0 128 128 1)


aktive image circle

Syntax: aktive image circle ?(param value)...? [→ definition]

Returns square single-band image containing a circle (disc perimeter). The image has size 2*radius + 1 squared.

Parameter Type Default Description
radius uint 1 Radius of the circle (disc perimeter).
width uint 1 Width of the element. Default 1. Has to be less or equal to the radius.

Examples

aktive image circle radius 32 width 8
 
aktive image circle radius 32 width 8
geometry(0 0 65 65 1)


aktive image cross

Syntax: aktive image cross ?(param value)...? [→ definition]

Returns square single-band image containing a cross. The image has size 2*radius + 1 squared.

Parameter Type Default Description
radius uint 1 Radius of the cross.
width uint 0 Width of the element. Default 0. Has to be less or equal to the radius.

Examples

aktive image cross radius 32 width 8
 
aktive image cross radius 32 width 8
geometry(0 0 65 65 1)


aktive image dbar

Syntax: aktive image dbar ?(param value)...? [→ definition]

Returns square single-band image containing a diagonal bar. The image has size 2*radius + 1 squared.

Parameter Type Default Description
radius uint 1 Radius of the diagonal bar.
width uint 0 Width of the element. Default 0. Has to be less or equal to the radius.

Examples

aktive image dbar radius 32 width 8
 
aktive image dbar radius 32 width 8
geometry(0 0 65 65 1)


aktive image dgrid

Syntax: aktive image dgrid ?(param value)...? [→ definition]

Returns image containing a diagonal black/white grid with configurable stripes

Parameter Type Default Description
width uint Width of the returned image
height uint Height of the returned image
offset uint 0 Pattern offset
black uint 8 Width of the black stripe
white uint 8 Width of the white stripe

Examples

aktive image dgrid width 128 height 128
 
aktive image dgrid width 128 height 128
geometry(0 0 128 128 1)

aktive image dgrid width 128 height 128 black 16 white 32
 
aktive image dgrid width 128 height 128 black 16 white 32
geometry(0 0 128 128 1)

aktive image dgrid width 128 height 128 black 16 white 32 offset 8
 
aktive image dgrid width 128 height 128 black 16 white 32 offset 8
geometry(0 0 128 128 1)


aktive image disc

Syntax: aktive image disc ?(param value)...? [→ definition]

Returns square single-band image containing a filled disc. The image has size 2*radius + 1 squared.

Parameter Type Default Description
radius uint 1 Radius of the filled disc.

Examples

aktive image disc radius 32
 
aktive image disc radius 32
geometry(0 0 65 65 1)


aktive image dstripes

Syntax: aktive image dstripes ?(param value)...? [→ definition]

Returns image containing a series of diagonal black/white stripes.

Parameter Type Default Description
width uint Width of the returned image
height uint Height of the returned image
offset uint 0 Pattern offset
black uint 8 Width of the black stripe
white uint 8 Width of the white stripe

Examples

aktive image dstripes width 128 height 128
 
aktive image dstripes width 128 height 128
geometry(0 0 128 128 1)

aktive image dstripes width 128 height 128 black 16 white 32
 
aktive image dstripes width 128 height 128 black 16 white 32
geometry(0 0 128 128 1)

aktive image dstripes width 128 height 128 black 16 white 32 offset 8
 
aktive image dstripes width 128 height 128 black 16 white 32 offset 8
geometry(0 0 128 128 1)


aktive image eye

Syntax: aktive image eye (param value)... [→ definition]

Returns image containing a test pattern with increasing spatial frequency from left to right, and increasing amplitude (i.e. black to white) from top to bottom.

Parameter Type Default Description
width uint Width of the returned image
height uint Height of the returned image
factor double Maximum spatial frequency. Range 0..1.

Examples

aktive image eye width 256 height 256 factor 0.8
 
aktive image eye width 256 height 256 factor 0.8
geometry(0 0 256 256 1)


aktive image from band

Syntax: aktive image from band ?(param value)...? [→ definition]

Returns image where all pixels have the same band values.

Depth is len(value)

Parameter Type Default Description
x int 0 Image location, X coordinate
y int 0 Image location, Y coordinate
width uint Width of the returned image
height uint Height of the returned image
values double... Pixel band values

Examples

aktive image from band width 64 height 64 values 0.3
 
aktive image from band width 64 height 64 values 0.3
geometry(0 0 64 64 1)

aktive image from band width 64 height 64 values 0.3 0.5 0.7
 
aktive image from band width 64 height 64 values 0.3 0.5 0.7
geometry(0 0 64 64 3)


aktive image from column

Syntax: aktive image from column ?(param value)...? [→ definition]

Returns image of the specified width where all columns have the same set of values.

The image's height is the number of values.

Parameter Type Default Description
x int 0 Image location, X coordinate
y int 0 Image location, Y coordinate
width uint Width of the returned image
values double... Pixel column values

Examples

aktive image from column width 64 values 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.6 0.7 0.75 0.8 0.85 0.9 0.95 1
 
aktive image from column width 64 values 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.6 0.7 0.75 0.8 0.85 0.9 0.95 1
geometry(0 0 64 21 1)


aktive image from matrix

Syntax: aktive image from matrix ?(param value)...? [→ definition]

Returns single-band image with the pixel VALUEs.

Less than width by height values are extended with zeroes.

Excess values are ignored.

Depth is fixed at 1.

Parameter Type Default Description
x int 0 Image location, X coordinate
y int 0 Image location, Y coordinate
width uint Width of the returned image
height uint Height of the returned image
factor double 1 Scaling factor
values double... Pixel values

Examples

aktive image from matrix width 16 height 16 values 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
 
times 8aktive image from matrix width 16 height 16 values 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
geometry(0 0 128 128 1)


aktive image from row

Syntax: aktive image from row ?(param value)...? [→ definition]

Returns image of the specified height where all rows have the same set of values.

The image's width is the number of values.

Parameter Type Default Description
x int 0 Image location, X coordinate
y int 0 Image location, Y coordinate
height uint Height of the returned image
values double... Pixel row values

Examples

aktive image from row height 64 values 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.6 0.7 0.75 0.8 0.85 0.9 0.95 1
 
aktive image from row height 64 values 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.6 0.7 0.75 0.8 0.85 0.9 0.95 1
geometry(0 0 21 64 1)


aktive image from sparse deltas

Syntax: aktive image from sparse deltas (param value)... [→ definition]

Returns a single-band image where pixels are set to white at exactly the specified points. In contrast to sparse points the points are specified as linear distances from the origin.

The height is infered from the points

The first delta is relative to index 0

Converts the deltas internally to points and then operates like sparse points

Depth is fixed at 1

Pixel value is fixed at 1.0

Parameter Type Default Description
width uint Width of the returned image. This is needed for the conversion of the linear indices to (x,y) coordinates.
deltas uint... Linear distances between points to set

Examples

aktive image from sparse deltas width 7 deltas 0 20 5 15
 
aktive image from sparse deltas width 7 deltas 0 20 5 15
geometry(0 0 7 6 1)
times 8aktive image from sparse deltas width 7 deltas 0 20 5 15
geometry(0 0 56 48 1)


aktive image from sparse points

Syntax: aktive image from sparse points (param value)... [→ definition]

Returns a single-band image where pixels are set to white at exactly the specified coordinates.

Generally, the bounding box specifies the geometry, especially also the image origin

Width is implied by the bounding box of the points

Height is implied by the bounding box of the points

Depth is fixed at 1

Pixel value is fixed at 1.0

Parameter Type Default Description
coords point... Coordinates of the pixels to set in the image

Examples

aktive image from sparse points coords {0 0} {4 3} {5 5} {6 2}
 
aktive image from sparse points coords {0 0} {4 3} {5 5} {6 2}
geometry(0 0 7 6 1)
times 8aktive image from sparse points coords {0 0} {4 3} {5 5} {6 2}
geometry(0 0 56 48 1)


aktive image from sparse ranges

Syntax: aktive image from sparse ranges ?(param value)...? [→ definition]

Returns a single-band image where the pixels are set to the specified values as per the provided row ranges.

A single row range is specified by 4 numbers.

These are, in order, the row index, a range of columns, and the pixel value.

The latter is a floating point value, while the others are integers.

The bounding box over all provided the ranges specifies the result's geometry, including the origin.

The image depth is fixed at 1, i.e. the result is single-band.

Parameter Type Default Description
geometry rect {0 0 0 0} Image geometry. Defaults to the bounding box of the ranges.
ranges range... The ranges to set in the result, and their values.

Examples

aktive image from sparse ranges ranges {1 24 30 1} {2 23 31 1} {3 22 32 1} {4 22 24 0.75} {4 30 32 0.75} {5 22 23 0.75} {5 31 32 0.75} {6 23 24 0.5} {6 30 31 0.5} {7 24 25 0.5} {7 29 30 0.5}
 
aktive image from sparse ranges ranges {1 24 30 1} {2 23 31 1} {3 22 32 1} {4 22 24 0.75} {4 30 32 0.75} {5 22 23 0.75} {5 31 32 0.75} {6 23 24 0.5} {6 30 31 0.5} {7 24 25 0.5} {7 29 30 0.5}
geometry(22 1 11 7 1)
times 8aktive image from sparse ranges ranges {1 24 30 1} {2 23 31 1} {3 22 32 1} {4 22 24 0.75} {4 30 32 0.75} {5 22 23 0.75} {5 31 32 0.75} {6 23 24 0.5} {6 30 31 0.5} {7 24 25 0.5} {7 29 30 0.5}
geometry(22 1 88 56 1)


aktive image from value

Syntax: aktive image from value ?(param value)...? [→ definition]

Returns image which has the same VALUE everywhere.

Parameter Type Default Description
x int 0 Image location, X coordinate
y int 0 Image location, Y coordinate
width uint Width of the returned image
height uint Height of the returned image
depth uint Depth of the returned image
value double Pixel value

Examples

aktive image from value width 64 height 64 depth 1 value 0.5
 
aktive image from value width 64 height 64 depth 1 value 0.5
geometry(0 0 64 64 1)

aktive image from value width 64 height 64 depth 3 value 0.5
 
aktive image from value width 64 height 64 depth 3 value 0.5
geometry(0 0 64 64 3)


aktive image gradient

Syntax: aktive image gradient (param value)... [→ definition]

Returns image containing a linear gradient through all cells.

Parameter Type Default Description
width uint Width of the returned image
height uint Height of the returned image
depth uint Depth of the returned image
first double First value
last double Last value

Examples

aktive image gradient width 256 height 1 depth 1 first 0 last 1
 
height-times 32aktive image gradient width 256 height   1 depth 1 first 0 last 1
geometry(0 0 256 32 1)

aktive image gradient width 128 height 128 depth 1 first 0 last 1
 
aktive image gradient width 128 height 128 depth 1 first 0 last 1
geometry(0 0 128 128 1)


aktive image grey

Syntax: aktive image grey (param value)... [→ definition]

Returns image containing a left to right black to white gradient.

Parameter Type Default Description
width uint Width of the returned image
height uint Height of the returned image

Examples

aktive image grey width 256 height 32
 
aktive image grey width 256 height 32
geometry(0 0 256 32 1)


aktive image grid

Syntax: aktive image grid ?(param value)...? [→ definition]

Returns image containing an axis-aligned black/white grid with configurable stripes

Parameter Type Default Description
width uint Width of the returned image
height uint Height of the returned image
offset uint 0 Pattern offset
black uint 8 Width of the black stripe
white uint 8 Width of the white stripe

Examples

aktive image grid width 128 height 128
 
aktive image grid width 128 height 128
geometry(0 0 128 128 1)

aktive image grid width 128 height 128 black 16 white 32
 
aktive image grid width 128 height 128 black 16 white 32
geometry(0 0 128 128 1)

aktive image grid width 128 height 128 black 16 white 32 offset 8
 
aktive image grid width 128 height 128 black 16 white 32 offset 8
geometry(0 0 128 128 1)


aktive image hbar

Syntax: aktive image hbar ?(param value)...? [→ definition]

Returns square single-band image containing a horizontal bar. The image has size 2*radius + 1 squared.

Parameter Type Default Description
radius uint 1 Radius of the horizontal bar.
width uint 0 Width of the element. Default 0. Has to be less or equal to the radius.

Examples

aktive image hbar radius 32 width 8
 
aktive image hbar radius 32 width 8
geometry(0 0 65 65 1)


aktive image indexed

Syntax: aktive image indexed ?(param value)...? [→ definition]

Returns a 2-band image where each pixel declares its own position.

Note that while the result is usable as a warp map for the <!xref aktive op warp map> operation, it will not do anything, as it represents the identity warping.

Parameter Type Default Description
x int 0 X location of the returned image in the 2D plane
y int 0 Y location of the returned image in the 2D plane
width uint Width of the returned image
height uint Height of the returned image

Examples

aktive image indexed width 5 height 5
 
(0, 0)(1, 0)(2, 0)(3, 0)(4, 0)
(0, 1)(1, 1)(2, 1)(3, 1)(4, 1)
(0, 2)(1, 2)(2, 2)(3, 2)(4, 2)
(0, 3)(1, 3)(2, 3)(3, 3)(4, 3)
(0, 4)(1, 4)(2, 4)(3, 4)(4, 4)

aktive image indexed x -5 y -5 width 8 height 8
 
(-5, -5)(-4, -5)(-3, -5)(-2, -5)(-1, -5)(0, -5)(1, -5)(2, -5)
(-5, -4)(-4, -4)(-3, -4)(-2, -4)(-1, -4)(0, -4)(1, -4)(2, -4)
(-5, -3)(-4, -3)(-3, -3)(-2, -3)(-1, -3)(0, -3)(1, -3)(2, -3)
(-5, -2)(-4, -2)(-3, -2)(-2, -2)(-1, -2)(0, -2)(1, -2)(2, -2)
(-5, -1)(-4, -1)(-3, -1)(-2, -1)(-1, -1)(0, -1)(1, -1)(2, -1)
(-5, 0)(-4, 0)(-3, 0)(-2, 0)(-1, 0)(0, 0)(1, 0)(2, 0)
(-5, 1)(-4, 1)(-3, 1)(-2, 1)(-1, 1)(0, 1)(1, 1)(2, 1)
(-5, 2)(-4, 2)(-3, 2)(-2, 2)(-1, 2)(0, 2)(1, 2)(2, 2)


aktive image kernel emboss

Syntax: aktive image kernel emboss [→ definition]

Returns convolution kernel for embossing effect

Examples

aktive image kernel emboss
 
200
0-10
00-1

References


aktive image kernel gauss3 x

Syntax: aktive image kernel gauss3 x [→ definition]

Returns convolution kernel for gauss3ian blur effect

Examples

aktive image kernel gauss3 x
 
0.25000.50000.2500

References


aktive image kernel gauss3 xy

Syntax: aktive image kernel gauss3 xy [→ definition]

Returns convolution kernel for gauss3ian blur effect

Examples

aktive image kernel gauss3 xy
 
0.06250.12500.0625
0.12500.25000.1250
0.06250.12500.0625

References


aktive image kernel gauss3 y

Syntax: aktive image kernel gauss3 y [→ definition]

Returns convolution kernel for gauss3ian blur effect

Examples

aktive image kernel gauss3 y
 
0.2500
0.5000
0.2500

References


aktive image kernel gauss5 x

Syntax: aktive image kernel gauss5 x [→ definition]

Returns convolution kernel for gauss5ian blur effect

Examples

aktive image kernel gauss5 x
 
0.06250.25000.37500.25000.0625

References


aktive image kernel gauss5 y

Syntax: aktive image kernel gauss5 y [→ definition]

Returns convolution kernel for gauss5ian blur effect

Examples

aktive image kernel gauss5 y
 
0.0625
0.2500
0.3750
0.2500
0.0625

References


aktive image kernel gauss7 x

Syntax: aktive image kernel gauss7 x [→ definition]

Returns convolution kernel for gauss7ian blur effect

Examples

aktive image kernel gauss7 x
 
0.01560.09380.23440.31250.23440.09380.0156

References


aktive image kernel gauss7 y

Syntax: aktive image kernel gauss7 y [→ definition]

Returns convolution kernel for gauss7ian blur effect

Examples

aktive image kernel gauss7 y
 
0.0156
0.0938
0.2344
0.3125
0.2344
0.0938
0.0156

References


aktive image kernel gauss9 x

Syntax: aktive image kernel gauss9 x [→ definition]

Returns convolution kernel for gauss9ian blur effect

Examples

aktive image kernel gauss9 x
 
0.00780.06250.21880.43750.54690.43750.21880.06250.0078

References


aktive image kernel gauss9 y

Syntax: aktive image kernel gauss9 y [→ definition]

Returns convolution kernel for gauss9ian blur effect

Examples

aktive image kernel gauss9 y
 
0.0078
0.0625
0.2188
0.4375
0.5469
0.4375
0.2188
0.0625
0.0078

References


aktive image kernel gauss discrete

Syntax: aktive image kernel gauss discrete ?(param value)...? [→ definition]

Returns the 1D discrete gaussian convolution kernel, for the specified sigma and radius. By default sigma is 1. By default the radius is max(1,ceil(3*sigma)).

Parameter Type Default Description
sigma double Kernel spread, as standard deviation to cover.
radius uint [expr {max(1,int(ceil(3*$sigma)))}] Kernel radius, defaults to max(1,ceil(3*sigma)).

Examples

aktive image kernel gauss discrete sigma 1
 
0.00820.05010.20840.46680.20840.05010.0082

aktive image kernel gauss discrete sigma 2
 
0.00280.00930.02600.06120.11790.17910.20740.17910.11790.06120.02600.00930.0028

aktive image kernel gauss discrete sigma 1 radius 6
 
0.00000.00010.00100.00820.04990.20790.46580.20790.04990.00820.00100.00010.0000

References


aktive image kernel kirsch md

Syntax: aktive image kernel kirsch md [→ definition]

Returns convolution kernel for kirsch edge detection

Examples

aktive image kernel kirsch md
 
-355
-305
-3-3-3

References


aktive image kernel kirsch sd

Syntax: aktive image kernel kirsch sd [→ definition]

Returns convolution kernel for kirsch edge detection

Examples

aktive image kernel kirsch sd
 
55-3
50-3
-3-3-3

References


aktive image kernel kirsch x

Syntax: aktive image kernel kirsch x [→ definition]

Returns convolution kernel for kirsch edge detection

Examples

aktive image kernel kirsch x
 
5-3-3
50-3
5-3-3

References


aktive image kernel kirsch y

Syntax: aktive image kernel kirsch y [→ definition]

Returns convolution kernel for kirsch edge detection

Examples

aktive image kernel kirsch y
 
555
-30-3
-3-3-3

References


aktive image kernel lanczos

Syntax: aktive image kernel lanczos ?(param value)...? [→ definition]

Returns lanczos convolution kernel of the specified order. The default order is 3. Step expands the kernel to the given resolution (default 1).

Parameter Type Default Description
order uint 3 Order of the lanczos kernel. Acceptable minimum is 2.
step double 1 X-delta between kernel elements.

Examples

aktive image kernel lanczos
 
-0.00000.00001.00000.0000-0.0000

aktive image kernel lanczos order 2
 
0.00001.00000.0000

aktive image kernel lanczos order 2 step 0.25
 
-0.0179-0.0637-0.08470.00000.23530.57320.87741.00000.87740.57320.23530.0000-0.0847-0.0637-0.0179

References


aktive image kernel laplace 4

Syntax: aktive image kernel laplace 4 [→ definition]

Returns convolution kernel for laplacian edge detection

Examples

aktive image kernel laplace 4
 
0-10
-14-1
0-10

References


aktive image kernel laplace 8

Syntax: aktive image kernel laplace 8 [→ definition]

Returns convolution kernel for laplacian edge detection

Examples

aktive image kernel laplace 8
 
-1-1-1
-18-1
-1-1-1

References


aktive image kernel laplace X

Syntax: aktive image kernel laplace X [→ definition]

Returns convolution kernel for laplacian edge detection

Examples

aktive image kernel laplace X
 
1-21
-24-2
1-21

References


aktive image kernel prewitt md

Syntax: aktive image kernel prewitt md [→ definition]

Returns convolution kernel for prewitt edge detection

Examples

aktive image kernel prewitt md
 
011
-101
-1-10

References


aktive image kernel prewitt sd

Syntax: aktive image kernel prewitt sd [→ definition]

Returns convolution kernel for prewitt edge detection

Examples

aktive image kernel prewitt sd
 
-1-10
-101
011

References


aktive image kernel prewitt x

Syntax: aktive image kernel prewitt x [→ definition]

Returns convolution kernel for prewitt edge detection

Examples

aktive image kernel prewitt x
 
-101
-101
-101

References


aktive image kernel prewitt y

Syntax: aktive image kernel prewitt y [→ definition]

Returns convolution kernel for prewitt edge detection

Examples

aktive image kernel prewitt y
 
-1-1-1
000
111

References


aktive image kernel roberts x

Syntax: aktive image kernel roberts x [→ definition]

Returns convolution kernel for roberts cross edge detection

Examples

aktive image kernel roberts x
 
0-10
100
000

References


aktive image kernel roberts y

Syntax: aktive image kernel roberts y [→ definition]

Returns convolution kernel for roberts cross edge detection

Examples

aktive image kernel roberts y
 
-100
010
000

References


aktive image kernel scharr x

Syntax: aktive image kernel scharr x [→ definition]

Returns convolution kernel for scharr edge detection

Examples

aktive image kernel scharr x
 
-303
-10010
-303

References


aktive image kernel scharr y

Syntax: aktive image kernel scharr y [→ definition]

Returns convolution kernel for scharr edge detection

Examples

aktive image kernel scharr y
 
-3-10-3
000
3103

References


aktive image kernel sharp 4

Syntax: aktive image kernel sharp 4 [→ definition]

Returns convolution kernel for sharpening effect

Examples

aktive image kernel sharp 4
 
0-10
-15-1
0-10

References


aktive image kernel sharp 8

Syntax: aktive image kernel sharp 8 [→ definition]

Returns convolution kernel for sharpening effect

Examples

aktive image kernel sharp 8
 
-1-1-1
-19-1
-1-1-1

References


aktive image kernel sharp X

Syntax: aktive image kernel sharp X [→ definition]

Returns convolution kernel for sharpening effect

Examples

aktive image kernel sharp X
 
1-21
-25-2
1-21

References


aktive image kernel sobel md

Syntax: aktive image kernel sobel md [→ definition]

Returns convolution kernel for sobel edge detection

Examples

aktive image kernel sobel md
 
0-1-1
20-2
110

References


aktive image kernel sobel sd

Syntax: aktive image kernel sobel sd [→ definition]

Returns convolution kernel for sobel edge detection

Examples

aktive image kernel sobel sd
 
110
20-2
0-1-1

References


aktive image kernel sobel x

Syntax: aktive image kernel sobel x [→ definition]

Returns convolution kernel for sobel edge detection

Examples

aktive image kernel sobel x
 
10-1
20-2
10-1

References


aktive image kernel sobel y

Syntax: aktive image kernel sobel y [→ definition]

Returns convolution kernel for sobel edge detection

Examples

aktive image kernel sobel y
 
121
000
-1-2-1

References


aktive image noise gauss

Syntax: aktive image noise gauss ?(param value)...? [→ definition]

Returns image where pixels are set to random values drawn from a gaussian distribution with mean and sigma over +/-sigma. The defaults are 0 and 1.

Parameter Type Default Description
width uint Width of the returned image
height uint Height of the returned image
depth uint Depth of the returned image
mean double 0 Mean of the desired gauss distribution.
sigma double 1 Sigma of the desired gauss distribution.
seed uint [expr {int(4294967296*rand())}] Randomizer seed. Needed only to force fixed results.

Examples

aktive image noise gauss width 256 height 256 depth 1 seed 703011174
 
aktive image noise gauss width 256 height 256 depth 1 seed 703011174
geometry(0 0 256 256 1)

aktive image noise gauss width 256 height 256 depth 3 seed 703011174
 
aktive image noise gauss width 256 height 256 depth 3 seed 703011174
geometry(0 0 256 256 3)


aktive image noise salt

Syntax: aktive image noise salt ?(param value)...? [→ definition]

Returns image containing salt and pepper noise.

Pixels are set where the uniformly distributed random value is under the threshold.

For a given desired percentage P of noise pixels set the threshold to P/100.

The value of set pixels is fixed at 1.0

Parameter Type Default Description
width uint Width of the returned image
height uint Height of the returned image
depth uint Depth of the returned image
threshold double 0.01 Noise threshold within [0..1].
seed uint [expr {int(4294967296*rand())}] Randomizer seed. Needed only to force fixed results.

Examples

aktive image noise salt width 256 height 256 depth 1 seed 703011174 threshold 0.02
 
aktive image noise salt width 256 height 256 depth 1 seed 703011174 threshold 0.02
geometry(0 0 256 256 1)

aktive image noise salt width 256 height 256 depth 3 seed 703011174 threshold 0.02
 
aktive image noise salt width 256 height 256 depth 3 seed 703011174 threshold 0.02
geometry(0 0 256 256 3)


aktive image noise uniform

Syntax: aktive image noise uniform ?(param value)...? [→ definition]

Returns image where pixels are set to random values drawn from a uniform distribution over [0..1]

Parameter Type Default Description
width uint Width of the returned image
height uint Height of the returned image
depth uint Depth of the returned image
seed uint [expr {int(4294967296*rand())}] Randomizer seed. Needed only to force fixed results.

Examples

aktive image noise uniform width 256 height 256 depth 1 seed 703011174
 
aktive image noise uniform width 256 height 256 depth 1 seed 703011174
geometry(0 0 256 256 1)

aktive image noise uniform width 256 height 256 depth 3 seed 703011174
 
aktive image noise uniform width 256 height 256 depth 3 seed 703011174
geometry(0 0 256 256 3)


aktive image palette color

Syntax: aktive image palette color [→ definition]

Returns a 128x128 image containing a color palette.

Examples

aktive image palette color
 
aktive image palette color
geometry(0 0 128 128 3)


aktive image palette grey

Syntax: aktive image palette grey [→ definition]

Returns a 128x128 image containing a gray palette.

Examples

aktive image palette grey
 
aktive image palette grey
geometry(0 0 128 128 1)


aktive image sines

Syntax: aktive image sines (param value)... [→ definition]

Returns image containing a sine wave in two dimensions.

The ratio between horizontal and vertical frequencies determines the angle of the composite wave relative to the X axis.

Parameter Type Default Description
width uint Width of the returned image
height uint Height of the returned image
hf double Horizontal frequency
vf double Vertical frequency

Examples

aktive image sines width 256 height 256 hf 0.5 vf 0.6
 
aktive image sines width 256 height 256 hf 0.5 vf 0.6
geometry(0 0 256 256 1)


aktive image square

Syntax: aktive image square ?(param value)...? [→ definition]

Returns single-band white square with radius. Default radius 1.

Parameter Type Default Description
radius uint 1 Radius of the square. Full size is 2*radius + 1.

Examples

aktive image square radius 32
 
aktive image square radius 32
geometry(0 0 65 65 1)


aktive image stripes

Syntax: aktive image stripes ?(param value)...? [→ definition]

Returns image containing a series of vertical black/white stripes.

Parameter Type Default Description
width uint Width of the returned image
height uint Height of the returned image
offset uint 0 Pattern offset
black uint 8 Width of the black stripe
white uint 8 Width of the white stripe

Examples

aktive image stripes width 128 height 128
 
aktive image stripes width 128 height 128
geometry(0 0 128 128 1)

aktive image stripes width 128 height 128 black 16 white 32
 
aktive image stripes width 128 height 128 black 16 white 32
geometry(0 0 128 128 1)

aktive image stripes width 128 height 128 black 16 white 32 offset 8
 
aktive image stripes width 128 height 128 black 16 white 32 offset 8
geometry(0 0 128 128 1)


aktive image vbar

Syntax: aktive image vbar ?(param value)...? [→ definition]

Returns square single-band image containing a vertical bar. The image has size 2*radius + 1 squared.

Parameter Type Default Description
radius uint 1 Radius of the vertical bar.
width uint 0 Width of the element. Default 0. Has to be less or equal to the radius.

Examples

aktive image vbar radius 32 width 8
 
aktive image vbar radius 32 width 8
geometry(0 0 65 65 1)


aktive image xcross

Syntax: aktive image xcross ?(param value)...? [→ definition]

Returns square single-band image containing a diagonal cross. The image has size 2*radius + 1 squared.

Parameter Type Default Description
radius uint 1 Radius of the diagonal cross.
width uint 0 Width of the element. Default 0. Has to be less or equal to the radius.

Examples

aktive image xcross radius 32 width 8
 
aktive image xcross radius 32 width 8
geometry(0 0 65 65 1)


aktive image zone

Syntax: aktive image zone (param value)... [→ definition]

Returns image containing a zone plate test pattern.

Parameter Type Default Description
width uint Width of the returned image
height uint Height of the returned image

Examples

aktive image zone width 256 height 256
 
aktive image zone width 256 height 256
geometry(0 0 256 256 1)