Divooka Reference

Texture Filters

8 nodes

On this page 8

Blur

Function

A Gaussian blur: softens by averaging each pixel with its neighbours, nearer ones counting more. The cost does not grow with the radius.

Signature
Blur(texture: Texture, radius: Number) -> Texture
Texture Blur(Texture texture, double radius = 4)

Parameters

nametypedefaultdescription
textureTexture—The texture.
radiusNumber4The blur's size (its standard deviation), in pixels of a 1024-pixel texture.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Filters
Package
Image Processing

Dilate

Function

Grows bright areas: each pixel takes the highest value within the radius.

Signature
Dilate(texture: Texture, radius: Number) -> Texture
Texture Dilate(Texture texture, double radius = 2)

Parameters

nametypedefaultdescription
textureTexture—The texture.
radiusNumber2How far bright areas grow, in pixels of a 1024-pixel texture.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Filters
Package
Image Processing

Directional Blur

Function

Smears the texture along one direction, as motion or a brush stroke would: brushed metal, rain streaks, wood grain from noise.

Signature
DirectionalBlur -> Texture
    texture: Texture
    angle: Number
    length: Number
    oneSided: Truth
Texture DirectionalBlur(
    Texture texture,
    double angle = 0,
    double length = 16,
    bool oneSided = false)

Parameters

nametypedefaultdescription
textureTexture—The texture.
angleNumber0The direction in degrees, 0 to the right, 90 down.
lengthNumber16How far the smear reaches each way, in pixels of a 1024-pixel texture.
oneSidedTruthFalseSmear only forward rather than both ways, so streaks start at a feature and trail from it.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Filters
Package
Image Processing

Edge Detect

Function

Bright where values change quickly and dark where they are flat: outlines of shapes, the rims of a height.

Signature
EdgeDetect -> Texture
    texture: Texture
    width: Number
    strength: Number
Texture EdgeDetect(
    Texture texture,
    double width = 1,
    double strength = 4)

Parameters

nametypedefaultdescription
textureTexture—The texture.
widthNumber1How wide the drawn edges are, in pixels of a 1024-pixel texture.
strengthNumber4How bright an edge is for a given change.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Filters
Package
Image Processing

Erode

Function

Shrinks bright areas: each pixel takes the lowest value within the radius.

Signature
Erode(texture: Texture, radius: Number) -> Texture
Texture Erode(Texture texture, double radius = 2)

Parameters

nametypedefaultdescription
textureTexture—The texture.
radiusNumber2How far bright areas shrink, in pixels of a 1024-pixel texture.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Filters
Package
Image Processing

High Pass

Function

Keeps only the detail finer than the radius, around middle grey: removes the uneven lighting of a photograph so it tiles without visible patches, or isolates small bumps.

Signature
HighPass(texture: Texture, radius: Number) -> Texture
Texture HighPass(Texture texture, double radius = 16)

Parameters

nametypedefaultdescription
textureTexture—The texture.
radiusNumber16Detail larger than this is removed, in pixels of a 1024-pixel texture.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Filters
Package
Image Processing

Non Uniform Blur

Function

Blurs each pixel by a different amount, read from a map: white blurs fully to the maximum radius, black not at all. Softens some areas while leaving others crisp.

Signature
NonUniformBlur -> Texture
    texture: Texture
    amount: Texture
    maximumRadius: Number
Texture NonUniformBlur(
    Texture texture,
    Texture amount,
    double maximumRadius = 8)

Parameters

nametypedefaultdescription
textureTexture—The texture.
amountTexture—How much to blur each pixel, 0 to 1.
maximumRadiusNumber8The radius where the amount is 1, in pixels of a 1024-pixel texture.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Filters
Package
Image Processing

Sharpen

Function

Sharpens by adding back the difference between the texture and a blur of it (an unsharp mask).

Signature
Sharpen -> Texture
    texture: Texture
    amount: Number
    radius: Number
Texture Sharpen(
    Texture texture,
    double amount = 1,
    double radius = 1.5)

Parameters

nametypedefaultdescription
textureTexture—The texture.
amountNumber1How much of the difference is added.
radiusNumber1.5The size of the detail sharpened, in pixels of a 1024-pixel texture.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Filters
Package
Image Processing