
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 |
geometry(0 0 264 88 1) |
|
0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 2 | 2 | 0 | 0 | 3 | 3 | 3 | 0 | 4 | 4 | 4 | 4 | 4 | 0 | 0 | 0 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 2 | 2 | 0 | 0 | 3 | 0 | 3 | 0 | 4 | 0 | 0 | 0 | 4 | 0 | 0 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 0 | 0 | 0 | 3 | 3 | 3 | 0 | 4 | 0 | 0 | 0 | 4 | 0 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 0 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 0 | 6 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 0 | 0 | 4 | 0 | 5 | 5 | 5 | 0 | 0 | 0 | 0 | 0 | 5 | 5 | 5 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 0 | 0 | 4 | 0 | 5 | 5 | 0 | 0 | 0 | 7 | 0 | 0 | 0 | 5 | 5 | 0 | 2 | 0 | 6 | 6 | 6 | 6 | 6 | 6 | 6 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 4 | 4 | 4 | 4 | 0 | 0 | 5 | 5 | 0 | 0 | 7 | 0 | 0 | 5 | 5 | 0 | 0 | 0 | 6 | 6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 5 | 0 | 7 | 0 | 5 | 5 | 0 | 0 | 0 | 6 | 6 | 0 | 0 | 8 | 8 | 8 | 8 | 8 | 8 | 0 | 9 | 9 | 9 | 9 | 9 | 9 | 9 | 9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 6 | 0 | 0 | 8 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 9 | 9 | 9 | 9 | 9 | 9 | 9 | 0 | 0 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 7 | 0 | 0 | 0 | 0 | 0 | 8 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 9 | 0 | 0 | 0 | 0 | 9 | 9 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 7 | 7 | 0 | 0 | 0 | 0 |
|
@1
|
aktive op connected-components labeled @1 transform cc.max
|
times 8 |
geometry(0 0 264 88 1) |
|
times 8 |
geometry(0 0 264 88 1) |
|
@1
|
aktive op connected-components labeled @1 transform cc.max bbox 1
|
times 8 |
geometry(0 0 264 88 1) |
|
times 8 |
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 |
geometry(0 0 264 88 1) |
|
times 8 |
geometry(0 0 264 88 1) |
|
@1
|
aktive op morph close @1 radius 1
|
times 8 |
geometry(0 0 200 104 1) |
|
times 8 |
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 |
geometry(0 0 264 88 1) |
|
times 8 |
geometry(0 0 264 88 1) |
|
@1
|
aktive op morph dilate @1 radius 1
|
times 8 |
geometry(0 0 200 104 1) |
|
times 8 |
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 |
geometry(0 0 264 88 1) |
|
times 8 |
geometry(0 0 264 88 1) |
|
@1
|
aktive op morph erode @1 radius 1
|
times 8 |
geometry(0 0 200 104 1) |
|
times 8 |
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 |
geometry(0 0 264 88 1) |
|
times 8 |
geometry(0 0 264 88 1) |
|
@1
|
aktive op morph gradient all @1 radius 1
|
times 8 |
geometry(0 0 200 104 1) |
|
times 8 |
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 |
geometry(0 0 264 88 1) |
|
times 8 |
geometry(0 0 264 88 1) |
|
@1
|
aktive op morph gradient external @1 radius 1
|
times 8 |
geometry(0 0 200 104 1) |
|
times 8 |
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 |
geometry(0 0 264 88 1) |
|
times 8 |
geometry(0 0 264 88 1) |
|
@1
|
aktive op morph gradient internal @1 radius 1
|
times 8 |
geometry(0 0 200 104 1) |
|
times 8 |
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 |
geometry(0 0 264 88 1) |
|
times 8 |
geometry(0 0 264 88 1) |
|
@1
|
aktive op morph open @1 radius 1
|
times 8 |
geometry(0 0 200 104 1) |
|
times 8 |
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 |
geometry(0 0 264 88 1) |
|
times 8 |
geometry(0 0 264 88 1) |
|
@1
|
aktive op morph toggle @1 radius 1
|
times 8 |
geometry(0 0 200 104 1) |
|
times 8 |
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 |
geometry(0 0 264 88 1) |
|
times 8 |
geometry(0 0 264 88 1) |
|
@1
|
aktive op morph tophat black @1 radius 1
|
times 8 |
geometry(0 0 200 104 1) |
|
times 8 |
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 |
geometry(0 0 264 88 1) |
|
times 8 |
geometry(0 0 264 88 1) |
|
@1
|
aktive op morph tophat white @1 radius 1
|
times 8 |
geometry(0 0 200 104 1) |
|
times 8 |
geometry(0 0 200 104 1) |
|