AKTIVE

Artifact [2f4dd80622]
Login

Artifact [2f4dd80622]

Artifact 2f4dd8062278fcc4a40f9c3ae4a689fbb7cee44af5af8331db99247eb27853f5:


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

Documentation -- Reference Pages -- transform sdf

<anchor='top'> Table Of Contents

Subsections

Operators

Operators


aktive op sdf 2image fit

Syntax: aktive op sdf 2image fit src [→ definition]

Compresses the input SDF into the range 0..1 and returns the resulting grayscale image.

Input Description
src Source image

Examples

@1
 
@2
 
aktive op sdf and @1 @2
 
@1
geometry(0 0 128 128 1)
@2
geometry(0 0 128 128 1)
sdf-fitaktive op sdf and @1 @2
geometry(0 0 128 128 1)


aktive op sdf 2image pixelated

Syntax: aktive op sdf 2image pixelated src [→ definition]

Converts the SDF into a black/white image with pixelated element borders.

Input Description
src Source image

Examples

@1
 
@2
 
aktive op sdf and @1 @2
 
@1
geometry(0 0 128 128 1)
@2
geometry(0 0 128 128 1)
sdf-pixelatedaktive op sdf and @1 @2
geometry(0 0 128 128 1)


aktive op sdf 2image smooth

Syntax: aktive op sdf 2image smooth src [→ definition]

Converts the SDF into a grey-scale image with anti-aliased element borders.

Input Description
src Source image

Examples

@1
 
@2
 
aktive op sdf and @1 @2
 
@1
geometry(0 0 128 128 1)
@2
geometry(0 0 128 128 1)
sdf-smoothaktive op sdf and @1 @2
geometry(0 0 128 128 1)


aktive op sdf not

Syntax: aktive op sdf not src [→ definition]

Returns the inverted input SDF, where inside and outside changed places. This is defined as 1 - SRC.

Input Description
src Source image

Examples

@1
 
aktive op sdf not @1
 
@1
geometry(0 0 128 128 1)
aktive op sdf not @1
geometry(0 0 128 128 1)
sdf-fitaktive op sdf not @1
geometry(0 0 128 128 1)
sdf-smoothaktive op sdf not @1
geometry(0 0 128 128 1)
sdf-pixelatedaktive op sdf not @1
geometry(0 0 128 128 1)


aktive op sdf outline

Syntax: aktive op sdf outline src [→ definition]

Replaces the input SDF with an outlined form, and returns the result.

This is implemented by taking the absolute of the input.

Input Description
src Source image

Examples

@1
 
aktive op sdf outline @1
 
@1
geometry(0 0 128 128 1)
aktive op sdf outline @1
geometry(0 0 128 128 1)
sdf-fitaktive op sdf outline @1
geometry(0 0 128 128 1)
sdf-smoothaktive op sdf outline @1
geometry(0 0 128 128 1)
sdf-pixelatedaktive op sdf outline @1
geometry(0 0 128 128 1)


aktive op sdf ring

Syntax: aktive op sdf ring src (param value)... [→ definition]

Combines outlining and rounding to replace the input SDF with an SDF tracing the border at some thickness and returns the result.

The result is annular, i.e. has a ring/onion-like structure.

Note that a thickness of zero devolves this operation to a plain outline.

Input Description
src Source image
Parameter Type Default Description
thickness uint Desired border thickness.

Examples

@1
 
aktive op sdf ring @1 thickness 4
 
@1
geometry(0 0 128 128 1)
aktive op sdf ring @1 thickness 4
geometry(0 0 128 128 1)
sdf-fitaktive op sdf ring @1 thickness 4
geometry(0 0 128 128 1)
sdf-smoothaktive op sdf ring @1 thickness 4
geometry(0 0 128 128 1)
sdf-pixelatedaktive op sdf ring @1 thickness 4
geometry(0 0 128 128 1)


aktive op sdf round

Syntax: aktive op sdf round src (param value)... [→ definition]

Replaces the input SDF with a more rounded form per the radius, and returns the result.

This is implemented by shifting the input SDF down by the radius.

For a radius > 0 this expands the SDF, making the encoded element rounder. A radius < 0 conversely shrinks the SDF.

To get a rounded SDF at the original size use a pre-shrunken/expanded SDF as the input to compensate the changes made by this operator.

A radius of zero is ignored.

Input Description
src Source image
Parameter Type Default Description
radius uint Expansion/Shrinkage radius for the SDF.

Examples

@1
 
aktive op sdf round @1 radius 20
 
@1
geometry(0 0 128 128 1)
aktive op sdf round @1 radius 20
geometry(0 0 128 128 1)
sdf-fitaktive op sdf round @1 radius 20
geometry(0 0 128 128 1)
sdf-smoothaktive op sdf round @1 radius 20
geometry(0 0 128 128 1)
sdf-pixelatedaktive op sdf round @1 radius 20
geometry(0 0 128 128 1)