Divooka Reference

Image Processing Routines

44 nodes

On this page 44

Adjust Brightness

Function

Returns a new ImageProcessor with brightness adjusted.

Signature
AdjustBrightness -> Pixel Image
    image: Pixel Image
    value: Low Accuracy Number
PixelImage AdjustBrightness(PixelImage image, float value)

Parameters

nametypedefaultdescription
imagePixel Image—
valueLow Accuracy Number—Brightness offset in [-255..255].

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Adjust Contrast

Function

Returns a new ImageProcessor with contrast adjusted.

Signature
AdjustContrast -> Pixel Image
    image: Pixel Image
    contrast: Low Accuracy Number
PixelImage AdjustContrast(PixelImage image, float contrast)

Parameters

nametypedefaultdescription
imagePixel Image—
contrastLow Accuracy Number—Contrast factor where 1 is no change.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Adjust Saturation

Function

Returns a new ImageProcessor with saturation adjusted.

Signature
AdjustSaturation -> Pixel Image
    image: Pixel Image
    saturation: Low Accuracy Number
PixelImage AdjustSaturation(PixelImage image, float saturation)

Parameters

nametypedefaultdescription
imagePixel Image—
saturationLow Accuracy Number—Saturation factor where 1 is no change.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Apply Color Ramp

Function

This node carries no documentation.

Signature
ApplyColorRamp -> Pixel Image
    grayscaleMask: Pixel Image
    colorStops: IReadOnlyList<Color Stop>
PixelImage ApplyColorRamp(
    PixelImage grayscaleMask,
    IReadOnlyList<ColorStop> colorStops)

Parameters

nametypedefaultdescription
grayscaleMaskPixel Image—
colorStopsIReadOnlyList<Color Stop>—

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Apply Texture Ramp

Function

Overload 1 of 4

Signature
ApplyTextureRamp -> Pixel Image
    positionImage: I Pixel Image Sampler
    ramp: TextureRamp
    textureInterpolation: PixelInterpolation
    colorInterpolation: TextureRampColorInterpolation
PixelImage ApplyTextureRamp(
    IPixelImageSampler positionImage,
    TextureRamp ramp,
    PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear,
    TextureRampColorInterpolation colorInterpolation = TextureRampColorInterpolation.OpaqueRgb)

Applies a texture ramp using the source preview value as the ramp position.

Parameters

nametypedefaultdescription
positionImageI Pixel Image Sampler—
rampTextureRamp—
textureInterpolationPixelInterpolationBilinear
colorInterpolationTextureRampColorInterpolationOpaque RGB

Returns

resultPixel Image

Remarks

Each output pixel samples the ramp at positionImage.GetFloatValue(x, y).
Texture UV is derived from output pixel coordinates and wraps by default.

Overload 2 of 4

Signature
ApplyTextureRamp -> Pixel Image
    positionImage: I Pixel Image Sampler
    ramp: TextureRamp
    tileU: Number
    tileV: Number
    offsetU: Number
    offsetV: Number
    textureInterpolation: PixelInterpolation
    colorInterpolation: TextureRampColorInterpolation
PixelImage ApplyTextureRamp(
    IPixelImageSampler positionImage,
    TextureRamp ramp,
    double tileU,
    double tileV,
    double offsetU = 0,
    double offsetV = 0,
    PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear,
    TextureRampColorInterpolation colorInterpolation = TextureRampColorInterpolation.OpaqueRgb)

Applies a texture ramp using tiled normalized UV coordinates.

Parameters

nametypedefaultdescription
positionImageI Pixel Image Sampler—
rampTextureRamp—
tileUNumber—
tileVNumber—
offsetUNumber0
offsetVNumber0
textureInterpolationPixelInterpolationBilinear
colorInterpolationTextureRampColorInterpolationOpaque RGB

Returns

resultPixel Image

Overload 3 of 4

Signature
ApplyTextureRamp -> Pixel Image
    positionImage: I Pixel Image Sampler
    ramp: TextureRamp
    mixFunction: Blend Mode
    strength: Low Accuracy Number
    textureInterpolation: PixelInterpolation
PixelImage ApplyTextureRamp(
    IPixelImageSampler positionImage,
    TextureRamp ramp,
    MixFunction mixFunction,
    float strength = 1f,
    PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear)

Applies a texture ramp using a blend mode between neighboring texture stops.

Parameters

nametypedefaultdescription
positionImageI Pixel Image Sampler—
rampTextureRamp—
mixFunctionBlend Mode—
strengthLow Accuracy Number1
textureInterpolationPixelInterpolationBilinear

Returns

resultPixel Image

Overload 4 of 4

Signature
ApplyTextureRamp -> Pixel Image
    positionImage: I Pixel Image Sampler
    ramp: TextureRamp
    mixFunction: Blend Mode
    strength: Low Accuracy Number
    tileU: Number
    tileV: Number
    offsetU: Number
    offsetV: Number
    textureInterpolation: PixelInterpolation
PixelImage ApplyTextureRamp(
    IPixelImageSampler positionImage,
    TextureRamp ramp,
    MixFunction mixFunction,
    float strength,
    double tileU,
    double tileV,
    double offsetU = 0,
    double offsetV = 0,
    PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear)

Applies a texture ramp using a blend mode between neighboring texture stops, with tiled normalized UV coordinates.

Parameters

nametypedefaultdescription
positionImageI Pixel Image Sampler—
rampTextureRamp—
mixFunctionBlend Mode—
strengthLow Accuracy Number—
tileUNumber—
tileVNumber—
offsetUNumber0
offsetVNumber0
textureInterpolationPixelInterpolationBilinear

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Apply Texture Ramp Mapped

Function

Overload 1 of 2

Signature
ApplyTextureRampMapped -> Pixel Image
    normalizedPositionImage: I Pixel Image Sampler
    ramp: TextureRamp
    positionStart: Number
    positionEnd: Number
    textureInterpolation: PixelInterpolation
    colorInterpolation: TextureRampColorInterpolation
PixelImage ApplyTextureRampMapped(
    IPixelImageSampler normalizedPositionImage,
    TextureRamp ramp,
    double positionStart,
    double positionEnd,
    PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear,
    TextureRampColorInterpolation colorInterpolation = TextureRampColorInterpolation.OpaqueRgb)

Applies a texture ramp after remapping normalized source values into a scalar ramp domain.

Parameters

nametypedefaultdescription
normalizedPositionImageI Pixel Image Sampler—
rampTextureRamp—
positionStartNumber—
positionEndNumber—
textureInterpolationPixelInterpolationBilinear
colorInterpolationTextureRampColorInterpolationOpaque RGB

Returns

resultPixel Image

Overload 2 of 2

Signature
ApplyTextureRampMapped -> Pixel Image
    normalizedPositionImage: I Pixel Image Sampler
    ramp: TextureRamp
    positionStart: Number
    positionEnd: Number
    tileU: Number
    tileV: Number
    offsetU: Number
    offsetV: Number
    textureInterpolation: PixelInterpolation
    colorInterpolation: TextureRampColorInterpolation
PixelImage ApplyTextureRampMapped(
    IPixelImageSampler normalizedPositionImage,
    TextureRamp ramp,
    double positionStart,
    double positionEnd,
    double tileU,
    double tileV,
    double offsetU = 0,
    double offsetV = 0,
    PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear,
    TextureRampColorInterpolation colorInterpolation = TextureRampColorInterpolation.OpaqueRgb)

Applies a texture ramp after remapping normalized source values into a scalar ramp domain, with tiled normalized UV coordinates.

Parameters

nametypedefaultdescription
normalizedPositionImageI Pixel Image Sampler—
rampTextureRamp—
positionStartNumber—
positionEndNumber—
tileUNumber—
tileVNumber—
offsetUNumber0
offsetVNumber0
textureInterpolationPixelInterpolationBilinear
colorInterpolationTextureRampColorInterpolationOpaque RGB

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Apply Texture Ramp To Domain

Function

Applies a texture ramp by mapping normalized source values to the ramp's own domain.

Signature
ApplyTextureRampToDomain -> Pixel Image
    normalizedPositionImage: I Pixel Image Sampler
    ramp: TextureRamp
    textureInterpolation: PixelInterpolation
    colorInterpolation: TextureRampColorInterpolation
PixelImage ApplyTextureRampToDomain(
    IPixelImageSampler normalizedPositionImage,
    TextureRamp ramp,
    PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear,
    TextureRampColorInterpolation colorInterpolation = TextureRampColorInterpolation.OpaqueRgb)

Parameters

nametypedefaultdescription
normalizedPositionImageI Pixel Image Sampler—
rampTextureRamp—
textureInterpolationPixelInterpolationBilinear
colorInterpolationTextureRampColorInterpolationOpaque RGB

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Blend Texture Ramp

Function

Blends a sampled texture ramp over a base image.

Signature
BlendTextureRamp -> Pixel Image
    baseImage: Pixel Image
    positionImage: I Pixel Image Sampler
    ramp: TextureRamp
    mixFunction: Blend Mode
    strengthMultiplier: Low Accuracy Number
    textureInterpolation: PixelInterpolation
PixelImage BlendTextureRamp(
    PixelImage baseImage,
    IPixelImageSampler positionImage,
    TextureRamp ramp,
    MixFunction mixFunction,
    float strengthMultiplier = 1f,
    PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear)

Parameters

nametypedefaultdescription
baseImagePixel Image—
positionImageI Pixel Image Sampler—
rampTextureRamp—
mixFunctionBlend Mode—
strengthMultiplierLow Accuracy Number1
textureInterpolationPixelInterpolationBilinear

Returns

resultPixel Image

Remarks

Sampled texture alpha is used as an additional strength multiplier.

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

Blur

Function

Overload 1 of 2

Signature
Blur -> Pixel Image
    source: Pixel Image
    mask: I Pixel Image Sampler
    intensity: Low Accuracy Number
PixelImage Blur(
    PixelImage source,
    IPixelImageSampler mask,
    float intensity)

Applies a masked box blur to the image.

Parameters

nametypedefaultdescription
sourcePixel Image—Source image.
maskI Pixel Image Sampler—Grayscale mask controlling blur strength per pixel.
intensityLow Accuracy Number—Maximum blur intensity.

Returns

resultPixel Image

Overload 2 of 2

Signature
Blur -> Pixel Image
    image: Pixel Image
    radius: Low Accuracy Number
PixelImage Blur(PixelImage image, float radius)

Returns a new ImageProcessor with a Gaussian blur applied.

Parameters

nametypedefaultdescription
imagePixel Image—
radiusLow Accuracy Number—Blur radius.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Box Blur

Function

Applies a (separable) box blur to the image using the specified radius.

Signature
BoxBlur(source: Pixel Image, radius: Integer) -> Pixel Image
PixelImage BoxBlur(PixelImage source, int radius)

Parameters

nametypedefaultdescription
sourcePixel Image—Source image.
radiusInteger—Blur radius in pixels. Values <= 0 return a clone of the source.

Returns

resultPixel Image

Remarks

Each output pixel becomes the average of nearby pixels inside a rectangular “box” area.
In 2D blur, separable box blur is split into two 1D passes.
Notice a non-separable implementation acheives same result but is not going to be faster because the box kernel is separable.

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

Contrast

Function

Overload 1 of 2

Signature
Contrast -> Pixel Image
    source: Pixel Image
    intensity: Low Accuracy Number
PixelImage Contrast(PixelImage source, float intensity)

Adjusts contrast of the image.

Parameters

nametypedefaultdescription
sourcePixel Image—Source image.
intensityLow Accuracy Number—Contrast intensity.

Returns

resultPixel Image

Overload 2 of 2

Signature
Contrast -> Pixel Image
    source: Pixel Image
    mask: GrayscaleImage
    intensity: Low Accuracy Number
PixelImage Contrast(
    PixelImage source,
    GrayscaleImage mask,
    float intensity)

Adjusts contrast of the image using a mask.

Parameters

nametypedefaultdescription
sourcePixel Image—Source image.
maskGrayscaleImage—Grayscale mask controlling blend strength.
intensityLow Accuracy Number—Contrast intensity.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Convert Cube Map Image To Equirectangular Image

Function

This node carries no documentation.

Signature
ConvertCubeMapImageToEquirectangularImage(cubeMapLayout: Pixel Image) -> Pixel Image
PixelImage ConvertCubeMapImageToEquirectangularImage(PixelImage cubeMapLayout)

Parameters

nametypedefaultdescription
cubeMapLayoutPixel Image—

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Convert Equirectangular Image To Cube Map Image

Function

Converts equirectangular map to cubemap.

Signature
ConvertEquirectangularImageToCubeMapImage -> Pixel Image
    equirectangular: Pixel Image
    faceSize: Integer
PixelImage ConvertEquirectangularImageToCubeMapImage(
    PixelImage equirectangular,
    int faceSize = 256)

Parameters

nametypedefaultdescription
equirectangularPixel Image—
faceSizeInteger256

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Create Image Transform

Function

Creates a tiled transform around the center of a tile.

Signature
CreateImageTransform -> Image Transform
    translation: Vector2
    scale: Vector2
    rotationRadians: Low Accuracy Number
ImageTransform CreateImageTransform(
    Vector2 translation,
    Vector2 scale,
    float rotationRadians)

Parameters

nametypedefaultdescription
translationVector2—
scaleVector2—
rotationRadiansLow Accuracy Number—

Returns

resultImage Transform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Create Tile Transform

Function

Creates a tiled transform. Translation is in destination pixel space. Pivot is in UV/tile space.

Signature
CreateTileTransform -> Image Transform
    translation: Vector2
    scale: Vector2
    rotationRadians: Low Accuracy Number
    pivot: Vector2
ImageTransform CreateTileTransform(
    Vector2 translation,
    Vector2 scale,
    float rotationRadians,
    Vector2 pivot)

Parameters

nametypedefaultdescription
translationVector2—
scaleVector2—
rotationRadiansLow Accuracy Number—
pivotVector2—

Returns

resultImage Transform
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Crop

Function

Returns a new ImageProcessor containing a cropped region of the image.

Signature
Crop -> Pixel Image
    image: Pixel Image
    x: Integer
    y: Integer
    cropWidth: Integer
    cropHeight: Integer
PixelImage Crop(
    PixelImage image,
    int x,
    int y,
    int cropWidth,
    int cropHeight)

Parameters

nametypedefaultdescription
imagePixel Image—
xInteger—
yInteger—
cropWidthInteger—
cropHeightInteger—

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Get Base64string From Pixel Image

Function

Convert byte array to Base64 string

Signature
GetBase64StringFromPixelImage(pixelImage: Pixel Image) -> Text
string GetBase64StringFromPixelImage(PixelImage pixelImage)

Parameters

nametypedefaultdescription
pixelImagePixel Image—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Hsl

Function

Overload 1 of 2

Signature
HSL -> Pixel Image
    source: Pixel Image
    hueDelta: Low Accuracy Number
    saturationDelta: Low Accuracy Number
    lightnessDelta: Low Accuracy Number
PixelImage HSL(
    PixelImage source,
    float hueDelta,
    float saturationDelta,
    float lightnessDelta)

Adjusts HSL components of the image.

Parameters

nametypedefaultdescription
sourcePixel Image—Source image.
hueDeltaLow Accuracy Number—Hue adjustment.
saturationDeltaLow Accuracy Number—Saturation adjustment.
lightnessDeltaLow Accuracy Number—Lightness adjustment.

Returns

resultPixel Image

Overload 2 of 2

Signature
HSL -> Pixel Image
    source: Pixel Image
    hueDelta: Low Accuracy Number
    saturationDelta: Low Accuracy Number
    lightnessDelta: Low Accuracy Number
    mask: I Pixel Image Sampler
PixelImage HSL(
    PixelImage source,
    float hueDelta,
    float saturationDelta,
    float lightnessDelta,
    IPixelImageSampler mask)

Adjusts HSL components of the image using a mask.

Parameters

nametypedefaultdescription
sourcePixel Image—Source image.
hueDeltaLow Accuracy Number—Hue adjustment.
saturationDeltaLow Accuracy Number—Saturation adjustment.
lightnessDeltaLow Accuracy Number—Lightness adjustment.
maskI Pixel Image Sampler—Grayscale mask controlling blend strength.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Hsv

Function

Overload 1 of 2

Signature
HSV -> Pixel Image
    source: Pixel Image
    hueDelta: Low Accuracy Number
    saturationDelta: Low Accuracy Number
    valueDelta: Low Accuracy Number
PixelImage HSV(
    PixelImage source,
    float hueDelta,
    float saturationDelta,
    float valueDelta)

Adjusts HSV components of the image.

Parameters

nametypedefaultdescription
sourcePixel Image—Source image.
hueDeltaLow Accuracy Number—Hue adjustment.
saturationDeltaLow Accuracy Number—Saturation adjustment.
valueDeltaLow Accuracy Number—Value (brightness) adjustment.

Returns

resultPixel Image

Overload 2 of 2

Signature
HSV -> Pixel Image
    source: Pixel Image
    hueDelta: Low Accuracy Number
    saturationDelta: Low Accuracy Number
    valueDelta: Low Accuracy Number
    mask: I Pixel Image Sampler
PixelImage HSV(
    PixelImage source,
    float hueDelta,
    float saturationDelta,
    float valueDelta,
    IPixelImageSampler mask)

Adjusts HSV components of the image using a mask.

Parameters

nametypedefaultdescription
sourcePixel Image—Source image.
hueDeltaLow Accuracy Number—Hue adjustment.
saturationDeltaLow Accuracy Number—Saturation adjustment.
valueDeltaLow Accuracy Number—Value (brightness) adjustment.
maskI Pixel Image Sampler—Grayscale mask controlling blend strength.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Hue Shift

Function

Returns a new ImageProcessor with hue shifted by the specified degrees.

Signature
HueShift -> Pixel Image
    image: Pixel Image
    degrees: Low Accuracy Number
PixelImage HueShift(PixelImage image, float degrees)

Parameters

nametypedefaultdescription
imagePixel Image—
degreesLow Accuracy Number—Degrees to shift hue. Negative values shift backward.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Image Texture Tile Preview

Function

Creates a tiled preview image by repeatedly drawing the source image in a grid.

Signature
ImageTextureTilePreview -> Pixel Image
    source: Pixel Image
    tileX: Integer
    tileY: Integer
    drawRedBound: Truth
PixelImage ImageTextureTilePreview(
    PixelImage source,
    int tileX,
    int tileY,
    bool drawRedBound = true)

Parameters

nametypedefaultdescription
sourcePixel Image—The source texture image to tile.
tileXInteger—The number of horizontal tile repetitions.
tileYInteger—The number of vertical tile repetitions.
drawRedBoundTruthTrueIf true, draws a red rectangle centered in the output image with the same size as the original source texture.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Invert

Function

Returns a new ImageProcessor where the colors are inverted.

Signature
Invert(image: Pixel Image) -> Pixel Image
PixelImage Invert(PixelImage image)

Parameters

nametypedefaultdescription
imagePixel Image—

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Mix

Function

This node carries no documentation.

Overload 1 of 2

Signature
Mix -> Pixel Image
    functionEnum: Blend Mode
    source1: I Pixel Image Sampler
    source2: I Pixel Image Sampler
PixelImage Mix(
    MixFunction functionEnum,
    IPixelImageSampler source1,
    IPixelImageSampler source2)

Parameters

nametypedefaultdescription
functionEnumBlend Mode—
source1I Pixel Image Sampler—
source2I Pixel Image Sampler—

Returns

resultPixel Image

Overload 2 of 2

Signature
Mix -> Pixel Image
    functionEnum: Blend Mode
    source1: I Pixel Image Sampler
    source2: I Pixel Image Sampler
    strength: Low Accuracy Number
PixelImage Mix(
    MixFunction functionEnum,
    IPixelImageSampler source1,
    IPixelImageSampler source2,
    float strength)

Parameters

nametypedefaultdescription
functionEnumBlend Mode—
source1I Pixel Image Sampler—
source2I Pixel Image Sampler—
strengthLow Accuracy Number—Blend-mode intensity, 0 means “no source effect” and 1 means previous default behavior. For modes like Add and Subtract, value can be above 1 so the source can be amplified.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Blend (Masked)

Function

This node carries no documentation.

Overload 1 of 4

Signature
Mix -> Pixel Image
    mode: Blend Mode
    baseImage: Pixel Image
    blenderImage: Pixel Image
    mask: I Pixel Image Sampler
PixelImage Mix(
    MixFunction mode,
    PixelImage baseImage,
    PixelImage blenderImage,
    IPixelImageSampler mask)

Parameters

nametypedefaultdescription
modeBlend Mode—
baseImagePixel Image—
blenderImagePixel Image—
maskI Pixel Image Sampler—

Returns

resultPixel Image

Overload 2 of 4

Signature
Mix -> Pixel Image
    mode: Blend Mode
    baseImage: Pixel Image
    blendImage: Pixel Image
    opacityMask: I Pixel Image Sampler
    strengthMultiplier: Low Accuracy Number
PixelImage Mix(
    MixFunction mode,
    PixelImage baseImage,
    PixelImage blendImage,
    IPixelImageSampler opacityMask,
    float strengthMultiplier = 1f)

Parameters

nametypedefaultdescription
modeBlend Mode—
baseImagePixel Image—
blendImagePixel Image—
opacityMaskI Pixel Image Sampler—opacity = 0 -> baseImage opacity = 1 -> blendImage applied over baseImage
strengthMultiplierLow Accuracy Number1

Returns

resultPixel Image

Remarks

For most non-linear modes, strength behaves like opacity between the base and the full blend result. For Add and Subtract, it scales the blend image contribution.

Overload 3 of 4

Signature
Mix -> Pixel Image
    mode: Blend Mode
    baseImage: Pixel Image
    blenderImage: Pixel Image
    mask: Pixel Image
PixelImage Mix(
    MixFunction mode,
    PixelImage baseImage,
    PixelImage blenderImage,
    PixelImage mask)

Parameters

nametypedefaultdescription
modeBlend Mode—
baseImagePixel Image—
blenderImagePixel Image—
maskPixel Image—

Returns

resultPixel Image

Overload 4 of 4

Signature
Mix -> Pixel Image
    mode: Blend Mode
    baseImage: Pixel Image
    blendImage: Pixel Image
    opacityMask: Pixel Image
    strengthMultiplier: Low Accuracy Number
PixelImage Mix(
    MixFunction mode,
    PixelImage baseImage,
    PixelImage blendImage,
    PixelImage opacityMask,
    float strengthMultiplier = 1f)

Parameters

nametypedefaultdescription
modeBlend Mode—
baseImagePixel Image—
blendImagePixel Image—
opacityMaskPixel Image—opacity = 0 -> baseImage opacity = 1 -> blendImage applied over baseImage
strengthMultiplierLow Accuracy Number1

Returns

resultPixel Image

Remarks

For most non-linear modes, strength behaves like opacity between the base and the full blend result. For Add and Subtract, it scales the blend image contribution.

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

Negate

Function

Overload 1 of 3

Signature
Negate(source: Pixel Image) -> Pixel Image
PixelImage Negate(PixelImage source)

Inverts RGB channels of the image.

Parameters

nametypedefaultdescription
sourcePixel Image—Source image.

Returns

resultPixel Image

Overload 2 of 3

Signature
Negate(mask: GrayscaleImage) -> GrayscaleImage
GrayscaleImage Negate(GrayscaleImage mask)

Inverts grayscale values.

Parameters

nametypedefaultdescription
maskGrayscaleImage—Source grayscale image.

Returns

resultGrayscaleImage

Overload 3 of 3

Signature
Negate(mask: Grayscale16BitImage) -> Grayscale16BitImage
Grayscale16BitImage Negate(Grayscale16BitImage mask)

Inverts grayscale values.

Parameters

nametypedefaultdescription
maskGrayscale16BitImage—Source grayscale image.

Returns

resultGrayscale16BitImage
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Offset

Function

This node carries no documentation.

Overload 1 of 4

Signature
Offset(ramp: Color Ramp, offset: Number) -> Color Ramp
ColorRamp Offset(ColorRamp ramp, double offset)

Parameters

nametypedefaultdescription
rampColor Ramp—
offsetNumber—

Returns

resultColor Ramp

Overload 2 of 4

Signature
Offset -> Color Ramp
    stops: IEnumerable<Color Stop>
    offset: Number
ColorRamp Offset(IEnumerable<ColorStop> stops, double offset)

Parameters

nametypedefaultdescription
stopsIEnumerable<Color Stop>—
offsetNumber—

Returns

resultColor Ramp

Overload 3 of 4

Signature
Offset(ramp: TextureRamp, offset: Number) -> TextureRamp
TextureRamp Offset(TextureRamp ramp, double offset)

Parameters

nametypedefaultdescription
rampTextureRamp—
offsetNumber—

Returns

resultTextureRamp

Overload 4 of 4

Signature
Offset -> TextureRamp
    stops: IEnumerable<TextureStop>
    offset: Number
TextureRamp Offset(
    IEnumerable<TextureStop> stops,
    double offset)

Parameters

nametypedefaultdescription
stopsIEnumerable<TextureStop>—
offsetNumber—

Returns

resultTextureRamp
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Padding

Function

Overload 1 of 2

Signature
Padding -> Pixel Image
    source: Pixel Image
    left: Integer
    top: Integer
    right: Integer
    bottom: Integer
    backgroundBehavior: PixelImageOperations.PaddingBackgroundBehavior
    backgroundColor: Optional Color
PixelImage Padding(
    PixelImage source,
    int left,
    int top,
    int right,
    int bottom,
    PixelImageOperations.PaddingBackgroundBehavior backgroundBehavior = PaddingBackgroundBehavior.PureColor,
    ColorElement? backgroundColor)

Pads an image on all four sides.

Parameters

nametypedefaultdescription
sourcePixel Image—Source image.
leftInteger—Padding added to the left side.
topInteger—Padding added to the top side.
rightInteger—Padding added to the right side.
bottomInteger—Padding added to the bottom side.
backgroundBehaviorPixelImageOperations.PaddingBackgroundBehaviorPure colorBackground fill behavior.
backgroundColorOptional Color—Background color used when Background Behavior is PaddingBackgroundBehavior.PureColor.

Returns

resultPixel Image

Overload 2 of 2

Signature
Padding -> Pixel Image
    source: Pixel Image
    left: Integer
    top: Integer
    right: Integer
    bottom: Integer
    backgroundColor: Color
PixelImage Padding(
    PixelImage source,
    int left,
    int top,
    int right,
    int bottom,
    ColorElement backgroundColor)

Pads an image on all four sides using a pure background color.

Parameters

nametypedefaultdescription
sourcePixel Image—
leftInteger—
topInteger—
rightInteger—
bottomInteger—
backgroundColorColor—

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Padding Extend

Function

Pads an image on all four sides by extending the nearest existing edge pixels.

Signature
PaddingExtend -> Pixel Image
    source: Pixel Image
    left: Integer
    top: Integer
    right: Integer
    bottom: Integer
PixelImage PaddingExtend(
    PixelImage source,
    int left,
    int top,
    int right,
    int bottom)

Parameters

nametypedefaultdescription
sourcePixel Image—
leftInteger—
topInteger—
rightInteger—
bottomInteger—

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Remove Alpha

Function

Removes transparency by setting all alpha values to 255.

Signature
RemoveAlpha(source: Pixel Image) -> Pixel Image
PixelImage RemoveAlpha(PixelImage source)

Parameters

nametypedefaultdescription
sourcePixel Image—Source image.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Resize

Function

Resizes a Image.PixelImage to the target dimensions.

Signature
Resize -> Pixel Image
    source: Pixel Image
    width: Integer
    height: Integer
    interpolation: PixelInterpolation
PixelImage Resize(
    PixelImage source,
    int width,
    int height,
    PixelInterpolation interpolation = PixelInterpolation.Bilinear)

Parameters

nametypedefaultdescription
sourcePixel Image—
widthInteger—Target image width.
heightInteger—Target image height.
interpolationPixelInterpolationBilinear

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Resize Sampled

Function

Returns a new Image.PixelImage with the image resized to the specified width and height.

Signature
ResizeSampled -> Pixel Image
    image: Pixel Image
    newWidth: Integer
    newHeight: Integer
    sampling: SamplingMode
PixelImage ResizeSampled(
    PixelImage image,
    int newWidth,
    int newHeight,
    SamplingMode sampling = SamplingMode.Bicubic)

Parameters

nametypedefaultdescription
imagePixel Image—
newWidthInteger—
newHeightInteger—
samplingSamplingModeBicubic

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Reverse

Function

This node carries no documentation.

Overload 1 of 4

Signature
Reverse(ramp: Color Ramp) -> Color Ramp
ColorRamp Reverse(ColorRamp ramp)

Parameters

nametypedefaultdescription
rampColor Ramp—

Returns

resultColor Ramp

Overload 2 of 4

Signature
Reverse(stops: IEnumerable<Color Stop>) -> Color Ramp
ColorRamp Reverse(IEnumerable<ColorStop> stops)

Parameters

nametypedefaultdescription
stopsIEnumerable<Color Stop>—

Returns

resultColor Ramp

Overload 3 of 4

Signature
Reverse(ramp: TextureRamp) -> TextureRamp
TextureRamp Reverse(TextureRamp ramp)

Parameters

nametypedefaultdescription
rampTextureRamp—

Returns

resultTextureRamp

Overload 4 of 4

Signature
Reverse(stops: IEnumerable<TextureStop>) -> TextureRamp
TextureRamp Reverse(IEnumerable<TextureStop> stops)

Parameters

nametypedefaultdescription
stopsIEnumerable<TextureStop>—

Returns

resultTextureRamp
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Rotate

Function

Returns a new ImageProcessor with the image rotated by the specified degrees.

Signature
Rotate -> Pixel Image
    image: Pixel Image
    degrees: Low Accuracy Number
PixelImage Rotate(PixelImage image, float degrees)

Parameters

nametypedefaultdescription
imagePixel Image—
degreesLow Accuracy Number—

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Scale Domain

Function

This node carries no documentation.

Overload 1 of 7

Signature
ScaleDomain -> Color Ramp
    ramp: Color Ramp
    targetStart: Number
    targetEnd: Number
ColorRamp ScaleDomain(
    ColorRamp ramp,
    double targetStart,
    double targetEnd)

Parameters

nametypedefaultdescription
rampColor Ramp—
targetStartNumber—
targetEndNumber—

Returns

resultColor Ramp

Overload 2 of 7

Signature
ScaleDomain -> Color Ramp
    stops: IEnumerable<Color Stop>
    targetStart: Number
    targetEnd: Number
ColorRamp ScaleDomain(
    IEnumerable<ColorStop> stops,
    double targetStart,
    double targetEnd)

Parameters

nametypedefaultdescription
stopsIEnumerable<Color Stop>—
targetStartNumber—
targetEndNumber—

Returns

resultColor Ramp

Overload 3 of 7

Signature
ScaleDomain -> Color Ramp
    ramp: Color Ramp
    sourceStart: Number
    sourceEnd: Number
    targetStart: Number
    targetEnd: Number
ColorRamp ScaleDomain(
    ColorRamp ramp,
    double sourceStart,
    double sourceEnd,
    double targetStart,
    double targetEnd)

Parameters

nametypedefaultdescription
rampColor Ramp—
sourceStartNumber—
sourceEndNumber—
targetStartNumber—
targetEndNumber—

Returns

resultColor Ramp

Overload 4 of 7

Signature
ScaleDomain -> Color Ramp
    stops: IEnumerable<Color Stop>
    sourceStart: Number
    sourceEnd: Number
    targetStart: Number
    targetEnd: Number
ColorRamp ScaleDomain(
    IEnumerable<ColorStop> stops,
    double sourceStart,
    double sourceEnd,
    double targetStart,
    double targetEnd)

Parameters

nametypedefaultdescription
stopsIEnumerable<Color Stop>—
sourceStartNumber—
sourceEndNumber—
targetStartNumber—
targetEndNumber—

Returns

resultColor Ramp

Overload 5 of 7

Signature
ScaleDomain -> TextureRamp
    ramp: TextureRamp
    targetStart: Number
    targetEnd: Number
TextureRamp ScaleDomain(
    TextureRamp ramp,
    double targetStart,
    double targetEnd)

Parameters

nametypedefaultdescription
rampTextureRamp—
targetStartNumber—
targetEndNumber—

Returns

resultTextureRamp

Overload 6 of 7

Signature
ScaleDomain -> TextureRamp
    stops: IEnumerable<TextureStop>
    targetStart: Number
    targetEnd: Number
TextureRamp ScaleDomain(
    IEnumerable<TextureStop> stops,
    double targetStart,
    double targetEnd)

Parameters

nametypedefaultdescription
stopsIEnumerable<TextureStop>—
targetStartNumber—
targetEndNumber—

Returns

resultTextureRamp

Overload 7 of 7

Signature
ScaleDomain -> TextureRamp
    ramp: TextureRamp
    sourceStart: Number
    sourceEnd: Number
    targetStart: Number
    targetEnd: Number
TextureRamp ScaleDomain(
    TextureRamp ramp,
    double sourceStart,
    double sourceEnd,
    double targetStart,
    double targetEnd)

Parameters

nametypedefaultdescription
rampTextureRamp—
sourceStartNumber—
sourceEndNumber—
targetStartNumber—
targetEndNumber—

Returns

resultTextureRamp
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Sharpen

Function

Returns a new ImageProcessor with a sharpen effect applied.

Signature
Sharpen -> Pixel Image
    image: Pixel Image
    amount: Low Accuracy Number
PixelImage Sharpen(PixelImage image, float amount)

Parameters

nametypedefaultdescription
imagePixel Image—
amountLow Accuracy Number—Sharpen intensity.

Returns

resultPixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Split Image With Overlap

Function

This node carries no documentation.

Signature
SplitImageWithOverlap -> Pixel Image Array Array
    source: Pixel Image
    rows: Integer
    columns: Integer
    pixelOverlap: Integer
PixelImage[][] SplitImageWithOverlap(
    PixelImage source,
    int rows,
    int columns,
    int pixelOverlap = 0)

Parameters

nametypedefaultdescription
sourcePixel Image—
rowsInteger—
columnsInteger—
pixelOverlapInteger0

Returns

resultPixel Image Array Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Threshold

Function

Converts a grayscale image to a binary image using a threshold.

Signature
Threshold -> Grayscale16BitImage
    source: I Pixel Image Sampler
    thresholdF: Low Accuracy Number
Grayscale16BitImage Threshold(
    IPixelImageSampler source,
    float thresholdF)

Parameters

nametypedefaultdescription
sourceI Pixel Image Sampler—Source grayscale image.
thresholdFLow Accuracy Number—Threshold in range [0,1]. Values above 1 are clamped.

Returns

resultGrayscale16BitImage
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Tile Texture

Function

Overload 1 of 2

Signature
TileTexture -> Pixel Image
    textureSample: Pixel Image
    width: Integer
    height: Integer
    transform: Image Transform
    interpolation: PixelInterpolation
PixelImage TileTexture(
    PixelImage textureSample,
    int width,
    int height,
    ImageTransform transform,
    PixelInterpolation interpolation = PixelInterpolation.Bilinear)

Tiles Texture Sample into a destination image with an explicit pixel size.

Parameters

nametypedefaultdescription
textureSamplePixel Image—The source texture image to repeat.
widthInteger—The destination image width in pixels.
heightInteger—The destination image height in pixels.
transformImage Transform—Texture-placement transform applied in destination pixel space.
interpolationPixelInterpolationBilinearThe interpolation mode used when sampling the source texture.

Returns

resultPixel Image

Remarks

This overload treats Transform as a texture-placement transform in destination pixel space.
The destination size is determined by Texture Sample.

With ImageTransform.Identity, one source pixel maps to one destination pixel and wrapping repeats the source image automatically as needed. For example, a 128x128 source rendered into a 512x512 destination produces approximately 4x4 repetitions.

ImageTransform.Scale controls the visual size of each repeated texture tile. A scale of (2, 2) makes each tile twice as large in destination pixels, therefore producing fewer visible repetitions. A scale of (0.5, 0.5) makes each tile half as large, therefore producing more visible repetitions.

ImageTransform.Translation is measured in destination pixels and moves the visible texture placement.
Positive X moves the texture to the right; positive Y moves it downward.

ImageTransform.Rotation is measured in degrees and rotates the texture placement before wrapping.

ImageTransform.Pivot is measured in source texture UV space. A pivot of (0, 0) is the source texture origin; a pivot of (0.5, 0.5) is the center of one source texture tile.

Overload 2 of 2

Signature
TileTexture -> Pixel Image
    textureSample: Pixel Image
    width: Integer
    height: Integer
    interpolation: PixelInterpolation
PixelImage TileTexture(
    PixelImage textureSample,
    int width,
    int height,
    PixelInterpolation interpolation = PixelInterpolation.Bilinear)

Tiles Texture Sample into a destination image with an explicit pixel size and no additional transform.

Parameters

nametypedefaultdescription
textureSamplePixel Image—The source texture image to repeat.
widthInteger—The destination image width in pixels.
heightInteger—The destination image height in pixels.
interpolationPixelInterpolationBilinearThe interpolation mode used when sampling the source texture.

Returns

resultPixel Image

Remarks

The destination size is determined by Texture Sample.

With identity placement, one source pixel maps to one destination pixel and wrapping repeats the source image automatically as needed. For example, a 128x128 source rendered into a 512x512 destination produces approximately 4x4 repetitions.

TODO:
- [ ] Refactor image transform handling with Interfaces.IPixelImageSampler and a custom TransformTextureLayer which implements IPixelImageSampler.

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

Tile Texture By Count

Function

Overload 1 of 2

Signature
TileTextureByCount -> Pixel Image
    source: Pixel Image
    tileCountU: Integer
    tileCountV: Integer
    transform: Image Transform
    interpolation: PixelInterpolation
PixelImage TileTextureByCount(
    PixelImage source,
    int tileCountU,
    int tileCountV,
    ImageTransform transform,
    PixelInterpolation interpolation = PixelInterpolation.Bilinear)

Tiles Source by U/V repetition counts, deriving the destination size from the source texture size and transform scale.

Parameters

nametypedefaultdescription
sourcePixel Image—The source texture image to repeat.
tileCountUInteger—The intended number of source texture repetitions used to derive destination width.
tileCountVInteger—The intended number of source texture repetitions used to derive destination height.
transformImage Transform—Texture-placement transform applied in destination pixel space.
interpolationPixelInterpolationBilinearThe interpolation mode used when sampling the source texture.

Returns

resultPixel Image

Remarks

This overload is for cases where no explicit destination size is available.

The destination size is computed as:

width = ceiling(source.Columns * tileCountU * abs(transform.Scale.X))
height = ceiling(source.Rows * tileCountV * abs(transform.Scale.Y))

The tile counts are only used to derive the destination canvas size. They are not passed into the sampling transform.
Actual repetition is produced by wrapping the sampled source texture.

ImageTransform.Scale controls the visual size of each repeated texture tile. A scale of (2, 2) makes each tile twice as large in destination pixels, so a tile count of 2 produces a destination size large enough for two enlarged tiles. A negative scale mirrors the texture placement on that axis while its absolute value is used for destination size calculation.

ImageTransform.Translation is measured in destination pixels and moves the visible texture placement.

ImageTransform.Pivot is measured in source texture UV space. A pivot of (0.5, 0.5) is the center of
one source texture tile.

Overload 2 of 2

Signature
TileTextureByCount -> Pixel Image
    source: Pixel Image
    tileCountU: Integer
    tileCountV: Integer
    interpolation: PixelInterpolation
PixelImage TileTextureByCount(
    PixelImage source,
    int tileCountU,
    int tileCountV,
    PixelInterpolation interpolation = PixelInterpolation.Bilinear)

Tiles Source by U/V repetition counts, deriving the destination size from the source texture size.

Parameters

nametypedefaultdescription
sourcePixel Image—The source texture image to repeat.
tileCountUInteger—The intended number of source texture repetitions used to derive destination width.
tileCountVInteger—The intended number of source texture repetitions used to derive destination height.
interpolationPixelInterpolationBilinearThe interpolation mode used when sampling the source texture.

Returns

resultPixel Image

Remarks

This overload is for cases where no explicit destination size is available.

The destination size is computed as:

width = source.Columns * tileCountU
height = source.Rows * tileCountV

The tile counts are only used to derive the destination canvas size. They are not passed into the sampling transform.
Actual repetition is produced by wrapping the sampled source texture.

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

Tile Texture Randomized

Function

Tiles Texture Sample into a destination image using stochastic texture tiling.

Signature
TileTextureRandomized -> Pixel Image
    textureSample: Pixel Image
    width: Integer
    height: Integer
    transform: Image Transform
    randomTransformRange: Image Transform
    randomizedSamples: Integer
    seed: Integer
    randomCellSize: Low Accuracy Number
    interpolation: PixelInterpolation
PixelImage TileTextureRandomized(
    PixelImage textureSample,
    int width,
    int height,
    ImageTransform transform,
    ImageTransform randomTransformRange,
    int randomizedSamples = 4,
    int seed = 0,
    float randomCellSize = 1f,
    PixelInterpolation interpolation = PixelInterpolation.Bilinear)

Parameters

nametypedefaultdescription
textureSamplePixel Image—The source texture image to repeat.
widthInteger—The destination image width in pixels.
heightInteger—The destination image height in pixels.
transformImage Transform—Texture-placement transform applied in destination pixel space.
randomTransformRangeImage Transform—Maximum per-cell random transform variation. Pivot is ignored.
randomizedSamplesInteger4Number of stochastic samples to blend. Supported values are 1, 4, and 9.
seedInteger0Deterministic random seed.
randomCellSizeLow Accuracy Number1Stochastic tile stride in repeated source-tile units.
interpolationPixelInterpolationBilinearThe interpolation mode used when sampling the source texture.

Returns

resultPixel Image

Remarks

This overload treats Transform the same way as PixelImageOperations.TileTexture:
it is a texture-placement transform in destination pixel space.

Stochastic tiling reduces visible repetition by blending several independently randomized versions of the repeated source texture.
The randomization is deterministic for a given Seed.

Random Transform Range specifies the maximum random variation applied to each stochastic sample:
ImageTransform.Translation is measured in source texture pixels and sampled in the range [-Translation, +Translation].
ImageTransform.Rotation is measured in degrees and sampled in the range [-Rotation, +Rotation].
ImageTransform.Scale is relative variation around 1. For example, a value of (0.15, 0.15) samples scale in the range [0.85, 1.15].
ImageTransform.Pivot is ignored.

Random Cell Size controls the stochastic tile stride in repeated source-tile units.
A value of 1 means each stochastic blend cell is approximately one repeated source texture tile.
A value of 2 means each stochastic blend cell spans approximately 2x2 repeated source texture tiles, producing larger random regions.
A value of 0.5 means each stochastic blend cell is half a repeated source tile, producing more frequent variation.
This value follows Transform, so scaling or rotating the texture placement also scales or rotates the stochastic cell layout.

Randomized Samples controls quality and cost. Supported values are 1, 4, and 9.
1 is fastest but does not blend between stochastic cells.
4 blends the four neighboring stochastic cells and is the recommended default.
9 blends a wider 3x3 neighborhood and is smoother but slower.

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

To Grayscale

Function

Returns a new ImageProcessor with the image converted to grayscale.

Signature
ToGrayscale(image: Pixel Image) -> GrayscaleImage
GrayscaleImage ToGrayscale(PixelImage image)

Parameters

nametypedefaultdescription
imagePixel Image—

Returns

resultGrayscaleImage

Remarks

The Skia implementation this replaced fed the matrix in column order, so it did not convert
to greyscale at all -- it scaled the channel sum by 0.2126, 0.7152 and 0.0722 respectively
and came out green. ColorFilter.CreateGrayscale carries the same Rec. 709
weights the old code meant to use.

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

Try Extract QR Code

Function

This node carries no documentation.

Signature
TryExtractQRCode -> (result: Pixel Image, cropExtent: Optional Image Crop Extent2d)
    sourceImage: Pixel Image
    cropMargin: Integer
PixelImage TryExtractQRCode(
    PixelImage sourceImage,
    out ImageCropExtent2D? cropExtent,
    int cropMargin = 10)

Parameters

nametypedefaultdescription
sourceImagePixel Image—
cropMarginInteger10

Returns

resultPixel Image
cropExtentOptional Image Crop Extent2d
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Try Read QR Code

Function

This node carries no documentation.

Signature
TryReadQRCode(sourceImage: Pixel Image) -> Text
string TryReadQRCode(PixelImage sourceImage)

Parameters

nametypedefaultdescription
sourceImagePixel Image—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing

Validate Source Image For Processing Input

Function

This node carries no documentation.

Signature
ValidateSourceImageForProcessingInput(source: Pixel Image)
void ValidateSourceImageForProcessingInput(PixelImage source)

Parameters

nametypedefaultdescription
sourcePixel Image—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Image Processing Routines
Package
Image Processing