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 morphology

Table Of Contents

Operators

Operators


aktive op connected-components labeled

Syntax: aktive op connected-components labeled src ?(param value)...? [→ definition]

Returns the input with labeled connected components.

See "aktive op connected-components get" for the CC core.

This operator is strict in its single input. The computed pixels are not materialized, only used to compute the connected components. The returned image is virtual based on the CC data.

Input Description
src Source image
Parameter Type Default Description
transform str {} Command prefix to transform the CCs before creating an image from them. Executed in the global scope.
bbox bool 0 Flag controlling the result geometry. When false (default) the result has the same geometry as the input. Else the result's geometry is the bounding box containing all CCs (After transformation, if any).

Examples

@1
 
aktive op connected-components labeled @1
 
times 8@1
geometry(0 0 264 88 1)
000001000000000000000000000000000
000001002200333044444000555555500
111111002200303040004005555555550
000000022000333040004055555555555
022222220600000040004055500000555
020000000600000040004055000700055
020666666600000044444005500700550
006600000000000000000000550705500
066008888880999999990000000700000
066008000000999999990077777777777
000008000000990000990000007770000

@1
 
aktive op connected-components labeled @1 transform cc.max
 
times 8@1
geometry(0 0 264 88 1)
times 8aktive op connected-components labeled @1 transform cc.max
geometry(0 0 264 88 1)

@1
 
aktive op connected-components labeled @1 transform cc.max bbox 1
 
times 8@1
geometry(0 0 264 88 1)
times 8aktive op connected-components labeled @1 transform cc.max bbox 1
geometry(22 1 88 56 1)


aktive op morph close

Syntax: aktive op morph close src ?(param value)...? [→ definition]

Returns image containing the morphological closing (dilate, then erode) of the input using a (2radius+1)x(2radius+1) square structuring element.

Input Description
src Source image
Parameter Type Default Description
radius uint 1 Size of the structuring element to perform the operation with.
embed str black Embedding method to use before core operators to keep output from shrinking.

Examples

@1
 
aktive op morph close @1 radius 1
 
times 8@1
geometry(0 0 264 88 1)
times 8aktive op morph close @1 radius 1
geometry(0 0 264 88 1)

@1
 
aktive op morph close @1 radius 1
 
times 8@1
geometry(0 0 200 104 1)
times 8aktive op morph close @1 radius 1
geometry(0 0 200 104 1)


aktive op morph dilate

Syntax: aktive op morph dilate src ?(param value)...? [→ definition]

Returns image containing the morphological dilation of the input using a (2radius+1)x(2radius+1) square structuring element.

Input Description
src Source image
Parameter Type Default Description
radius uint 1 Size of the structuring element to perform the operation with.
embed str black Embedding method to use before core operators to keep output from shrinking.

Examples

@1
 
aktive op morph dilate @1 radius 1
 
times 8@1
geometry(0 0 264 88 1)
times 8aktive op morph dilate @1 radius 1
geometry(0 0 264 88 1)

@1
 
aktive op morph dilate @1 radius 1
 
times 8@1
geometry(0 0 200 104 1)
times 8aktive op morph dilate @1 radius 1
geometry(0 0 200 104 1)


aktive op morph erode

Syntax: aktive op morph erode src ?(param value)...? [→ definition]

Returns image containing the morphological erosion of the input using a (2radius+1)x(2radius+1) square structuring element.

Input Description
src Source image
Parameter Type Default Description
radius uint 1 Size of the structuring element to perform the operation with.
embed str black Embedding method to use before core operators to keep output from shrinking.

Examples

@1
 
aktive op morph erode @1 radius 1
 
times 8@1
geometry(0 0 264 88 1)
times 8aktive op morph erode @1 radius 1
geometry(0 0 264 88 1)

@1
 
aktive op morph erode @1 radius 1
 
times 8@1
geometry(0 0 200 104 1)
times 8aktive op morph erode @1 radius 1
geometry(0 0 200 104 1)


aktive op morph gradient all

Syntax: aktive op morph gradient all src ?(param value)...? [→ definition]

Returns image containing the morphological gradient (subtract eroded from dilated) of the input using a (2radius+1)x(2radius+1) square structuring element.

Input Description
src Source image
Parameter Type Default Description
radius uint 1 Size of the structuring element to perform the operation with.
embed str black Embedding method to use before core operators to keep output from shrinking.

Examples

@1
 
aktive op morph gradient all @1 radius 1
 
times 8@1
geometry(0 0 264 88 1)
times 8aktive op morph gradient all @1 radius 1
geometry(0 0 264 88 1)

@1
 
aktive op morph gradient all @1 radius 1
 
times 8@1
geometry(0 0 200 104 1)
times 8aktive op morph gradient all @1 radius 1
geometry(0 0 200 104 1)


aktive op morph gradient external

Syntax: aktive op morph gradient external src ?(param value)...? [→ definition]

Returns image containing the morphological outer gradient (subtract input from dilated) of the input using a (2radius+1)x(2radius+1) square structuring element.

Input Description
src Source image
Parameter Type Default Description
radius uint 1 Size of the structuring element to perform the operation with.
embed str black Embedding method to use before core operators to keep output from shrinking.

Examples

@1
 
aktive op morph gradient external @1 radius 1
 
times 8@1
geometry(0 0 264 88 1)
times 8aktive op morph gradient external @1 radius 1
geometry(0 0 264 88 1)

@1
 
aktive op morph gradient external @1 radius 1
 
times 8@1
geometry(0 0 200 104 1)
times 8aktive op morph gradient external @1 radius 1
geometry(0 0 200 104 1)


aktive op morph gradient internal

Syntax: aktive op morph gradient internal src ?(param value)...? [→ definition]

Returns image containing the morphological inner gradient (subtract eroded from input) of the input using a (2radius+1)x(2radius+1) square structuring element.

Input Description
src Source image
Parameter Type Default Description
radius uint 1 Size of the structuring element to perform the operation with.
embed str black Embedding method to use before core operators to keep output from shrinking.

Examples

@1
 
aktive op morph gradient internal @1 radius 1
 
times 8@1
geometry(0 0 264 88 1)
times 8aktive op morph gradient internal @1 radius 1
geometry(0 0 264 88 1)

@1
 
aktive op morph gradient internal @1 radius 1
 
times 8@1
geometry(0 0 200 104 1)
times 8aktive op morph gradient internal @1 radius 1
geometry(0 0 200 104 1)


aktive op morph open

Syntax: aktive op morph open src ?(param value)...? [→ definition]

Returns image containing the morphological opening (erode, then dilate) of the input using a (2radius+1)x(2radius+1) square structuring element.

Input Description
src Source image
Parameter Type Default Description
radius uint 1 Size of the structuring element to perform the operation with.
embed str black Embedding method to use before core operators to keep output from shrinking.

Examples

@1
 
aktive op morph open @1 radius 1
 
times 8@1
geometry(0 0 264 88 1)
times 8aktive op morph open @1 radius 1
geometry(0 0 264 88 1)

@1
 
aktive op morph open @1 radius 1
 
times 8@1
geometry(0 0 200 104 1)
times 8aktive op morph open @1 radius 1
geometry(0 0 200 104 1)


aktive op morph toggle

Syntax: aktive op morph toggle src ?(param value)...? [→ definition]

Returns image containing the morphological of the input using a (2radius+1)x(2radius+1) square structuring element.

Input Description
src Source image
Parameter Type Default Description
radius uint 1 Size of the structuring element to perform the operation with.
embed str black Embedding method to use before core operators to keep output from shrinking.

Examples

@1
 
aktive op morph toggle @1 radius 1
 
times 8@1
geometry(0 0 264 88 1)
times 8aktive op morph toggle @1 radius 1
geometry(0 0 264 88 1)

@1
 
aktive op morph toggle @1 radius 1
 
times 8@1
geometry(0 0 200 104 1)
times 8aktive op morph toggle @1 radius 1
geometry(0 0 200 104 1)


aktive op morph tophat black

Syntax: aktive op morph tophat black src ?(param value)...? [→ definition]

Returns image containing the morphological black tophat (subtract input from closing) of the input using a (2radius+1)x(2radius+1) square structuring element.

Input Description
src Source image
Parameter Type Default Description
radius uint 1 Size of the structuring element to perform the operation with.
embed str black Embedding method to use before core operators to keep output from shrinking.

Examples

@1
 
aktive op morph tophat black @1 radius 1
 
times 8@1
geometry(0 0 264 88 1)
times 8aktive op morph tophat black @1 radius 1
geometry(0 0 264 88 1)

@1
 
aktive op morph tophat black @1 radius 1
 
times 8@1
geometry(0 0 200 104 1)
times 8aktive op morph tophat black @1 radius 1
geometry(0 0 200 104 1)


aktive op morph tophat white

Syntax: aktive op morph tophat white src ?(param value)...? [→ definition]

Returns image containing the morphological white tophat (subtract opening from input) of the input using a (2radius+1)x(2radius+1) square structuring element.

Input Description
src Source image
Parameter Type Default Description
radius uint 1 Size of the structuring element to perform the operation with.
embed str black Embedding method to use before core operators to keep output from shrinking.

Examples

@1
 
aktive op morph tophat white @1 radius 1
 
times 8@1
geometry(0 0 264 88 1)
times 8aktive op morph tophat white @1 radius 1
geometry(0 0 264 88 1)

@1
 
aktive op morph tophat white @1 radius 1
 
times 8@1
geometry(0 0 200 104 1)
times 8aktive op morph tophat white @1 radius 1
geometry(0 0 200 104 1)