Image Processing Routines
44 nodes
On this page 44
Adjust Brightness
FunctionReturns a new ImageProcessor with brightness adjusted.
AdjustBrightness -> Pixel Image
image: Pixel Image
value: Low Accuracy NumberPixelImage AdjustBrightness(PixelImage image, float value)
Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — | |
| value | Low Accuracy Number | — | Brightness offset in [-255..255]. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Adjust Contrast
FunctionReturns a new ImageProcessor with contrast adjusted.
AdjustContrast -> Pixel Image
image: Pixel Image
contrast: Low Accuracy NumberPixelImage AdjustContrast(PixelImage image, float contrast)
Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — | |
| contrast | Low Accuracy Number | — | Contrast factor where 1 is no change. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Adjust Saturation
FunctionReturns a new ImageProcessor with saturation adjusted.
AdjustSaturation -> Pixel Image
image: Pixel Image
saturation: Low Accuracy NumberPixelImage AdjustSaturation(PixelImage image, float saturation)
Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — | |
| saturation | Low Accuracy Number | — | Saturation factor where 1 is no change. |
Returns
| result | Pixel 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
FunctionThis node carries no documentation.
ApplyColorRamp -> Pixel Image
grayscaleMask: Pixel Image
colorStops: IReadOnlyList<Color Stop>PixelImage ApplyColorRamp(
PixelImage grayscaleMask,
IReadOnlyList<ColorStop> colorStops)Parameters
| name | type | default | description |
|---|---|---|---|
| grayscaleMask | Pixel Image | — | |
| colorStops | IReadOnlyList<Color Stop> | — |
Returns
| result | Pixel 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
FunctionOverload 1 of 4
ApplyTextureRamp -> Pixel Image
positionImage: I Pixel Image Sampler
ramp: TextureRamp
textureInterpolation: PixelInterpolation
colorInterpolation: TextureRampColorInterpolationPixelImage 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
| name | type | default | description |
|---|---|---|---|
| positionImage | I Pixel Image Sampler | — | |
| ramp | TextureRamp | — | |
| textureInterpolation | PixelInterpolation | Bilinear | |
| colorInterpolation | TextureRampColorInterpolation | Opaque RGB |
Returns
| result | Pixel 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
ApplyTextureRamp -> Pixel Image
positionImage: I Pixel Image Sampler
ramp: TextureRamp
tileU: Number
tileV: Number
offsetU: Number
offsetV: Number
textureInterpolation: PixelInterpolation
colorInterpolation: TextureRampColorInterpolationPixelImage 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
| name | type | default | description |
|---|---|---|---|
| positionImage | I Pixel Image Sampler | — | |
| ramp | TextureRamp | — | |
| tileU | Number | — | |
| tileV | Number | — | |
| offsetU | Number | 0 | |
| offsetV | Number | 0 | |
| textureInterpolation | PixelInterpolation | Bilinear | |
| colorInterpolation | TextureRampColorInterpolation | Opaque RGB |
Returns
| result | Pixel Image |
Overload 3 of 4
ApplyTextureRamp -> Pixel Image
positionImage: I Pixel Image Sampler
ramp: TextureRamp
mixFunction: Blend Mode
strength: Low Accuracy Number
textureInterpolation: PixelInterpolationPixelImage 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
| name | type | default | description |
|---|---|---|---|
| positionImage | I Pixel Image Sampler | — | |
| ramp | TextureRamp | — | |
| mixFunction | Blend Mode | — | |
| strength | Low Accuracy Number | 1 | |
| textureInterpolation | PixelInterpolation | Bilinear |
Returns
| result | Pixel Image |
Overload 4 of 4
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: PixelInterpolationPixelImage 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
| name | type | default | description |
|---|---|---|---|
| positionImage | I Pixel Image Sampler | — | |
| ramp | TextureRamp | — | |
| mixFunction | Blend Mode | — | |
| strength | Low Accuracy Number | — | |
| tileU | Number | — | |
| tileV | Number | — | |
| offsetU | Number | 0 | |
| offsetV | Number | 0 | |
| textureInterpolation | PixelInterpolation | Bilinear |
Returns
| result | Pixel 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
FunctionOverload 1 of 2
ApplyTextureRampMapped -> Pixel Image
normalizedPositionImage: I Pixel Image Sampler
ramp: TextureRamp
positionStart: Number
positionEnd: Number
textureInterpolation: PixelInterpolation
colorInterpolation: TextureRampColorInterpolationPixelImage 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
| name | type | default | description |
|---|---|---|---|
| normalizedPositionImage | I Pixel Image Sampler | — | |
| ramp | TextureRamp | — | |
| positionStart | Number | — | |
| positionEnd | Number | — | |
| textureInterpolation | PixelInterpolation | Bilinear | |
| colorInterpolation | TextureRampColorInterpolation | Opaque RGB |
Returns
| result | Pixel Image |
Overload 2 of 2
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: TextureRampColorInterpolationPixelImage 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
| name | type | default | description |
|---|---|---|---|
| normalizedPositionImage | I Pixel Image Sampler | — | |
| ramp | TextureRamp | — | |
| positionStart | Number | — | |
| positionEnd | Number | — | |
| tileU | Number | — | |
| tileV | Number | — | |
| offsetU | Number | 0 | |
| offsetV | Number | 0 | |
| textureInterpolation | PixelInterpolation | Bilinear | |
| colorInterpolation | TextureRampColorInterpolation | Opaque RGB |
Returns
| result | Pixel 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
FunctionApplies a texture ramp by mapping normalized source values to the ramp's own domain.
ApplyTextureRampToDomain -> Pixel Image
normalizedPositionImage: I Pixel Image Sampler
ramp: TextureRamp
textureInterpolation: PixelInterpolation
colorInterpolation: TextureRampColorInterpolationPixelImage ApplyTextureRampToDomain(
IPixelImageSampler normalizedPositionImage,
TextureRamp ramp,
PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear,
TextureRampColorInterpolation colorInterpolation = TextureRampColorInterpolation.OpaqueRgb)Parameters
| name | type | default | description |
|---|---|---|---|
| normalizedPositionImage | I Pixel Image Sampler | — | |
| ramp | TextureRamp | — | |
| textureInterpolation | PixelInterpolation | Bilinear | |
| colorInterpolation | TextureRampColorInterpolation | Opaque RGB |
Returns
| result | Pixel 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
FunctionBlends a sampled texture ramp over a base image.
BlendTextureRamp -> Pixel Image
baseImage: Pixel Image
positionImage: I Pixel Image Sampler
ramp: TextureRamp
mixFunction: Blend Mode
strengthMultiplier: Low Accuracy Number
textureInterpolation: PixelInterpolationPixelImage BlendTextureRamp(
PixelImage baseImage,
IPixelImageSampler positionImage,
TextureRamp ramp,
MixFunction mixFunction,
float strengthMultiplier = 1f,
PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear)Parameters
| name | type | default | description |
|---|---|---|---|
| baseImage | Pixel Image | — | |
| positionImage | I Pixel Image Sampler | — | |
| ramp | TextureRamp | — | |
| mixFunction | Blend Mode | — | |
| strengthMultiplier | Low Accuracy Number | 1 | |
| textureInterpolation | PixelInterpolation | Bilinear |
Returns
| result | Pixel 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
FunctionOverload 1 of 2
Blur -> Pixel Image
source: Pixel Image
mask: I Pixel Image Sampler
intensity: Low Accuracy NumberPixelImage Blur(
PixelImage source,
IPixelImageSampler mask,
float intensity)Applies a masked box blur to the image.
Parameters
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | Source image. |
| mask | I Pixel Image Sampler | — | Grayscale mask controlling blur strength per pixel. |
| intensity | Low Accuracy Number | — | Maximum blur intensity. |
Returns
| result | Pixel Image |
Overload 2 of 2
Blur -> Pixel Image
image: Pixel Image
radius: Low Accuracy NumberPixelImage Blur(PixelImage image, float radius)
Returns a new ImageProcessor with a Gaussian blur applied.
Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — | |
| radius | Low Accuracy Number | — | Blur radius. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Box Blur
FunctionApplies a (separable) box blur to the image using the specified radius.
BoxBlur(source: Pixel Image, radius: Integer) -> Pixel Image
PixelImage BoxBlur(PixelImage source, int radius)
Parameters
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | Source image. |
| radius | Integer | — | Blur radius in pixels. Values <= 0 return a clone of the source. |
Returns
| result | Pixel 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
FunctionOverload 1 of 2
Contrast -> Pixel Image
source: Pixel Image
intensity: Low Accuracy NumberPixelImage Contrast(PixelImage source, float intensity)
Adjusts contrast of the image.
Parameters
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | Source image. |
| intensity | Low Accuracy Number | — | Contrast intensity. |
Returns
| result | Pixel Image |
Overload 2 of 2
Contrast -> Pixel Image
source: Pixel Image
mask: GrayscaleImage
intensity: Low Accuracy NumberPixelImage Contrast(
PixelImage source,
GrayscaleImage mask,
float intensity)Adjusts contrast of the image using a mask.
Parameters
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | Source image. |
| mask | GrayscaleImage | — | Grayscale mask controlling blend strength. |
| intensity | Low Accuracy Number | — | Contrast intensity. |
Returns
| result | Pixel 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
FunctionThis node carries no documentation.
ConvertCubeMapImageToEquirectangularImage(cubeMapLayout: Pixel Image) -> Pixel Image
PixelImage ConvertCubeMapImageToEquirectangularImage(PixelImage cubeMapLayout)
Parameters
| name | type | default | description |
|---|---|---|---|
| cubeMapLayout | Pixel Image | — |
Returns
| result | Pixel 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
FunctionConverts equirectangular map to cubemap.
ConvertEquirectangularImageToCubeMapImage -> Pixel Image
equirectangular: Pixel Image
faceSize: IntegerPixelImage ConvertEquirectangularImageToCubeMapImage(
PixelImage equirectangular,
int faceSize = 256)Parameters
| name | type | default | description |
|---|---|---|---|
| equirectangular | Pixel Image | — | |
| faceSize | Integer | 256 |
Returns
| result | Pixel 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
FunctionCreates a tiled transform around the center of a tile.
CreateImageTransform -> Image Transform
translation: Vector2
scale: Vector2
rotationRadians: Low Accuracy NumberImageTransform CreateImageTransform(
Vector2 translation,
Vector2 scale,
float rotationRadians)Parameters
| name | type | default | description |
|---|---|---|---|
| translation | Vector2 | — | |
| scale | Vector2 | — | |
| rotationRadians | Low Accuracy Number | — |
Returns
| result | Image 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
FunctionCreates a tiled transform. Translation is in destination pixel space. Pivot is in UV/tile space.
CreateTileTransform -> Image Transform
translation: Vector2
scale: Vector2
rotationRadians: Low Accuracy Number
pivot: Vector2ImageTransform CreateTileTransform(
Vector2 translation,
Vector2 scale,
float rotationRadians,
Vector2 pivot)Parameters
| name | type | default | description |
|---|---|---|---|
| translation | Vector2 | — | |
| scale | Vector2 | — | |
| rotationRadians | Low Accuracy Number | — | |
| pivot | Vector2 | — |
Returns
| result | Image Transform |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Crop
FunctionReturns a new ImageProcessor containing a cropped region of the image.
Crop -> Pixel Image
image: Pixel Image
x: Integer
y: Integer
cropWidth: Integer
cropHeight: IntegerPixelImage Crop(
PixelImage image,
int x,
int y,
int cropWidth,
int cropHeight)Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — | |
| x | Integer | — | |
| y | Integer | — | |
| cropWidth | Integer | — | |
| cropHeight | Integer | — |
Returns
| result | Pixel 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
FunctionConvert byte array to Base64 string
GetBase64StringFromPixelImage(pixelImage: Pixel Image) -> Text
string GetBase64StringFromPixelImage(PixelImage pixelImage)
Parameters
| name | type | default | description |
|---|---|---|---|
| pixelImage | Pixel Image | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Hsl
FunctionOverload 1 of 2
HSL -> Pixel Image
source: Pixel Image
hueDelta: Low Accuracy Number
saturationDelta: Low Accuracy Number
lightnessDelta: Low Accuracy NumberPixelImage HSL(
PixelImage source,
float hueDelta,
float saturationDelta,
float lightnessDelta)Adjusts HSL components of the image.
Parameters
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | Source image. |
| hueDelta | Low Accuracy Number | — | Hue adjustment. |
| saturationDelta | Low Accuracy Number | — | Saturation adjustment. |
| lightnessDelta | Low Accuracy Number | — | Lightness adjustment. |
Returns
| result | Pixel Image |
Overload 2 of 2
HSL -> Pixel Image
source: Pixel Image
hueDelta: Low Accuracy Number
saturationDelta: Low Accuracy Number
lightnessDelta: Low Accuracy Number
mask: I Pixel Image SamplerPixelImage HSL(
PixelImage source,
float hueDelta,
float saturationDelta,
float lightnessDelta,
IPixelImageSampler mask)Adjusts HSL components of the image using a mask.
Parameters
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | Source image. |
| hueDelta | Low Accuracy Number | — | Hue adjustment. |
| saturationDelta | Low Accuracy Number | — | Saturation adjustment. |
| lightnessDelta | Low Accuracy Number | — | Lightness adjustment. |
| mask | I Pixel Image Sampler | — | Grayscale mask controlling blend strength. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Hsv
FunctionOverload 1 of 2
HSV -> Pixel Image
source: Pixel Image
hueDelta: Low Accuracy Number
saturationDelta: Low Accuracy Number
valueDelta: Low Accuracy NumberPixelImage HSV(
PixelImage source,
float hueDelta,
float saturationDelta,
float valueDelta)Adjusts HSV components of the image.
Parameters
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | Source image. |
| hueDelta | Low Accuracy Number | — | Hue adjustment. |
| saturationDelta | Low Accuracy Number | — | Saturation adjustment. |
| valueDelta | Low Accuracy Number | — | Value (brightness) adjustment. |
Returns
| result | Pixel Image |
Overload 2 of 2
HSV -> Pixel Image
source: Pixel Image
hueDelta: Low Accuracy Number
saturationDelta: Low Accuracy Number
valueDelta: Low Accuracy Number
mask: I Pixel Image SamplerPixelImage HSV(
PixelImage source,
float hueDelta,
float saturationDelta,
float valueDelta,
IPixelImageSampler mask)Adjusts HSV components of the image using a mask.
Parameters
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | Source image. |
| hueDelta | Low Accuracy Number | — | Hue adjustment. |
| saturationDelta | Low Accuracy Number | — | Saturation adjustment. |
| valueDelta | Low Accuracy Number | — | Value (brightness) adjustment. |
| mask | I Pixel Image Sampler | — | Grayscale mask controlling blend strength. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Hue Shift
FunctionReturns a new ImageProcessor with hue shifted by the specified degrees.
HueShift -> Pixel Image
image: Pixel Image
degrees: Low Accuracy NumberPixelImage HueShift(PixelImage image, float degrees)
Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — | |
| degrees | Low Accuracy Number | — | Degrees to shift hue. Negative values shift backward. |
Returns
| result | Pixel 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
FunctionCreates a tiled preview image by repeatedly drawing the source image in a grid.
ImageTextureTilePreview -> Pixel Image
source: Pixel Image
tileX: Integer
tileY: Integer
drawRedBound: TruthPixelImage ImageTextureTilePreview(
PixelImage source,
int tileX,
int tileY,
bool drawRedBound = true)Parameters
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | The source texture image to tile. |
| tileX | Integer | — | The number of horizontal tile repetitions. |
| tileY | Integer | — | The number of vertical tile repetitions. |
| drawRedBound | Truth | True | If true, draws a red rectangle centered in the output image with the same size as the original source texture. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Invert
FunctionReturns a new ImageProcessor where the colors are inverted.
Invert(image: Pixel Image) -> Pixel Image
PixelImage Invert(PixelImage image)
Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Mix
FunctionThis node carries no documentation.
Overload 1 of 2
Mix -> Pixel Image
functionEnum: Blend Mode
source1: I Pixel Image Sampler
source2: I Pixel Image SamplerPixelImage Mix(
MixFunction functionEnum,
IPixelImageSampler source1,
IPixelImageSampler source2)Parameters
| name | type | default | description |
|---|---|---|---|
| functionEnum | Blend Mode | — | |
| source1 | I Pixel Image Sampler | — | |
| source2 | I Pixel Image Sampler | — |
Returns
| result | Pixel Image |
Overload 2 of 2
Mix -> Pixel Image
functionEnum: Blend Mode
source1: I Pixel Image Sampler
source2: I Pixel Image Sampler
strength: Low Accuracy NumberPixelImage Mix(
MixFunction functionEnum,
IPixelImageSampler source1,
IPixelImageSampler source2,
float strength)Parameters
| name | type | default | description |
|---|---|---|---|
| functionEnum | Blend Mode | — | |
| source1 | I Pixel Image Sampler | — | |
| source2 | I Pixel Image Sampler | — | |
| strength | Low 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
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Blend (Masked)
FunctionThis node carries no documentation.
Overload 1 of 4
Mix -> Pixel Image
mode: Blend Mode
baseImage: Pixel Image
blenderImage: Pixel Image
mask: I Pixel Image SamplerPixelImage Mix(
MixFunction mode,
PixelImage baseImage,
PixelImage blenderImage,
IPixelImageSampler mask)Parameters
| name | type | default | description |
|---|---|---|---|
| mode | Blend Mode | — | |
| baseImage | Pixel Image | — | |
| blenderImage | Pixel Image | — | |
| mask | I Pixel Image Sampler | — |
Returns
| result | Pixel Image |
Overload 2 of 4
Mix -> Pixel Image
mode: Blend Mode
baseImage: Pixel Image
blendImage: Pixel Image
opacityMask: I Pixel Image Sampler
strengthMultiplier: Low Accuracy NumberPixelImage Mix(
MixFunction mode,
PixelImage baseImage,
PixelImage blendImage,
IPixelImageSampler opacityMask,
float strengthMultiplier = 1f)Parameters
| name | type | default | description |
|---|---|---|---|
| mode | Blend Mode | — | |
| baseImage | Pixel Image | — | |
| blendImage | Pixel Image | — | |
| opacityMask | I Pixel Image Sampler | — | opacity = 0 -> baseImage opacity = 1 -> blendImage applied over baseImage |
| strengthMultiplier | Low Accuracy Number | 1 |
Returns
| result | Pixel 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
Mix -> Pixel Image
mode: Blend Mode
baseImage: Pixel Image
blenderImage: Pixel Image
mask: Pixel ImagePixelImage Mix(
MixFunction mode,
PixelImage baseImage,
PixelImage blenderImage,
PixelImage mask)Parameters
| name | type | default | description |
|---|---|---|---|
| mode | Blend Mode | — | |
| baseImage | Pixel Image | — | |
| blenderImage | Pixel Image | — | |
| mask | Pixel Image | — |
Returns
| result | Pixel Image |
Overload 4 of 4
Mix -> Pixel Image
mode: Blend Mode
baseImage: Pixel Image
blendImage: Pixel Image
opacityMask: Pixel Image
strengthMultiplier: Low Accuracy NumberPixelImage Mix(
MixFunction mode,
PixelImage baseImage,
PixelImage blendImage,
PixelImage opacityMask,
float strengthMultiplier = 1f)Parameters
| name | type | default | description |
|---|---|---|---|
| mode | Blend Mode | — | |
| baseImage | Pixel Image | — | |
| blendImage | Pixel Image | — | |
| opacityMask | Pixel Image | — | opacity = 0 -> baseImage opacity = 1 -> blendImage applied over baseImage |
| strengthMultiplier | Low Accuracy Number | 1 |
Returns
| result | Pixel 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
FunctionOverload 1 of 3
Negate(source: Pixel Image) -> Pixel Image
PixelImage Negate(PixelImage source)
Inverts RGB channels of the image.
Parameters
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | Source image. |
Returns
| result | Pixel Image |
Overload 2 of 3
Negate(mask: GrayscaleImage) -> GrayscaleImage
GrayscaleImage Negate(GrayscaleImage mask)
Inverts grayscale values.
Parameters
| name | type | default | description |
|---|---|---|---|
| mask | GrayscaleImage | — | Source grayscale image. |
Returns
| result | GrayscaleImage |
Overload 3 of 3
Negate(mask: Grayscale16BitImage) -> Grayscale16BitImage
Grayscale16BitImage Negate(Grayscale16BitImage mask)
Inverts grayscale values.
Parameters
| name | type | default | description |
|---|---|---|---|
| mask | Grayscale16BitImage | — | Source grayscale image. |
Returns
| result | Grayscale16BitImage |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Offset
FunctionThis node carries no documentation.
Overload 1 of 4
Offset(ramp: Color Ramp, offset: Number) -> Color Ramp
ColorRamp Offset(ColorRamp ramp, double offset)
Parameters
| name | type | default | description |
|---|---|---|---|
| ramp | Color Ramp | — | |
| offset | Number | — |
Returns
| result | Color Ramp |
Overload 2 of 4
Offset -> Color Ramp
stops: IEnumerable<Color Stop>
offset: NumberColorRamp Offset(IEnumerable<ColorStop> stops, double offset)
Parameters
| name | type | default | description |
|---|---|---|---|
| stops | IEnumerable<Color Stop> | — | |
| offset | Number | — |
Returns
| result | Color Ramp |
Overload 3 of 4
Offset(ramp: TextureRamp, offset: Number) -> TextureRamp
TextureRamp Offset(TextureRamp ramp, double offset)
Parameters
| name | type | default | description |
|---|---|---|---|
| ramp | TextureRamp | — | |
| offset | Number | — |
Returns
| result | TextureRamp |
Overload 4 of 4
Offset -> TextureRamp
stops: IEnumerable<TextureStop>
offset: NumberTextureRamp Offset(
IEnumerable<TextureStop> stops,
double offset)Parameters
| name | type | default | description |
|---|---|---|---|
| stops | IEnumerable<TextureStop> | — | |
| offset | Number | — |
Returns
| result | TextureRamp |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Padding
FunctionOverload 1 of 2
Padding -> Pixel Image
source: Pixel Image
left: Integer
top: Integer
right: Integer
bottom: Integer
backgroundBehavior: PixelImageOperations.PaddingBackgroundBehavior
backgroundColor: Optional ColorPixelImage 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
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | Source image. |
| left | Integer | — | Padding added to the left side. |
| top | Integer | — | Padding added to the top side. |
| right | Integer | — | Padding added to the right side. |
| bottom | Integer | — | Padding added to the bottom side. |
| backgroundBehavior | PixelImageOperations.PaddingBackgroundBehavior | Pure color | Background fill behavior. |
| backgroundColor | Optional Color | — | Background color used when Background Behavior is PaddingBackgroundBehavior.PureColor. |
Returns
| result | Pixel Image |
Overload 2 of 2
Padding -> Pixel Image
source: Pixel Image
left: Integer
top: Integer
right: Integer
bottom: Integer
backgroundColor: ColorPixelImage 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
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | |
| left | Integer | — | |
| top | Integer | — | |
| right | Integer | — | |
| bottom | Integer | — | |
| backgroundColor | Color | — |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Padding Extend
FunctionPads an image on all four sides by extending the nearest existing edge pixels.
PaddingExtend -> Pixel Image
source: Pixel Image
left: Integer
top: Integer
right: Integer
bottom: IntegerPixelImage PaddingExtend(
PixelImage source,
int left,
int top,
int right,
int bottom)Parameters
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | |
| left | Integer | — | |
| top | Integer | — | |
| right | Integer | — | |
| bottom | Integer | — |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Remove Alpha
FunctionRemoves transparency by setting all alpha values to 255.
RemoveAlpha(source: Pixel Image) -> Pixel Image
PixelImage RemoveAlpha(PixelImage source)
Parameters
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | Source image. |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Resize
FunctionResizes a Image.PixelImage to the target dimensions.
Resize -> Pixel Image
source: Pixel Image
width: Integer
height: Integer
interpolation: PixelInterpolationPixelImage Resize(
PixelImage source,
int width,
int height,
PixelInterpolation interpolation = PixelInterpolation.Bilinear)Parameters
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | |
| width | Integer | — | Target image width. |
| height | Integer | — | Target image height. |
| interpolation | PixelInterpolation | Bilinear |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Resize Sampled
FunctionReturns a new Image.PixelImage with the image resized to the specified width and height.
ResizeSampled -> Pixel Image
image: Pixel Image
newWidth: Integer
newHeight: Integer
sampling: SamplingModePixelImage ResizeSampled(
PixelImage image,
int newWidth,
int newHeight,
SamplingMode sampling = SamplingMode.Bicubic)Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — | |
| newWidth | Integer | — | |
| newHeight | Integer | — | |
| sampling | SamplingMode | Bicubic |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Reverse
FunctionThis node carries no documentation.
Overload 1 of 4
Reverse(ramp: Color Ramp) -> Color Ramp
ColorRamp Reverse(ColorRamp ramp)
Parameters
| name | type | default | description |
|---|---|---|---|
| ramp | Color Ramp | — |
Returns
| result | Color Ramp |
Overload 2 of 4
Reverse(stops: IEnumerable<Color Stop>) -> Color Ramp
ColorRamp Reverse(IEnumerable<ColorStop> stops)
Parameters
| name | type | default | description |
|---|---|---|---|
| stops | IEnumerable<Color Stop> | — |
Returns
| result | Color Ramp |
Overload 3 of 4
Reverse(ramp: TextureRamp) -> TextureRamp
TextureRamp Reverse(TextureRamp ramp)
Parameters
| name | type | default | description |
|---|---|---|---|
| ramp | TextureRamp | — |
Returns
| result | TextureRamp |
Overload 4 of 4
Reverse(stops: IEnumerable<TextureStop>) -> TextureRamp
TextureRamp Reverse(IEnumerable<TextureStop> stops)
Parameters
| name | type | default | description |
|---|---|---|---|
| stops | IEnumerable<TextureStop> | — |
Returns
| result | TextureRamp |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Rotate
FunctionReturns a new ImageProcessor with the image rotated by the specified degrees.
Rotate -> Pixel Image
image: Pixel Image
degrees: Low Accuracy NumberPixelImage Rotate(PixelImage image, float degrees)
Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — | |
| degrees | Low Accuracy Number | — |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Scale Domain
FunctionThis node carries no documentation.
Overload 1 of 7
ScaleDomain -> Color Ramp
ramp: Color Ramp
targetStart: Number
targetEnd: NumberColorRamp ScaleDomain(
ColorRamp ramp,
double targetStart,
double targetEnd)Parameters
| name | type | default | description |
|---|---|---|---|
| ramp | Color Ramp | — | |
| targetStart | Number | — | |
| targetEnd | Number | — |
Returns
| result | Color Ramp |
Overload 2 of 7
ScaleDomain -> Color Ramp
stops: IEnumerable<Color Stop>
targetStart: Number
targetEnd: NumberColorRamp ScaleDomain(
IEnumerable<ColorStop> stops,
double targetStart,
double targetEnd)Parameters
| name | type | default | description |
|---|---|---|---|
| stops | IEnumerable<Color Stop> | — | |
| targetStart | Number | — | |
| targetEnd | Number | — |
Returns
| result | Color Ramp |
Overload 3 of 7
ScaleDomain -> Color Ramp
ramp: Color Ramp
sourceStart: Number
sourceEnd: Number
targetStart: Number
targetEnd: NumberColorRamp ScaleDomain(
ColorRamp ramp,
double sourceStart,
double sourceEnd,
double targetStart,
double targetEnd)Parameters
| name | type | default | description |
|---|---|---|---|
| ramp | Color Ramp | — | |
| sourceStart | Number | — | |
| sourceEnd | Number | — | |
| targetStart | Number | — | |
| targetEnd | Number | — |
Returns
| result | Color Ramp |
Overload 4 of 7
ScaleDomain -> Color Ramp
stops: IEnumerable<Color Stop>
sourceStart: Number
sourceEnd: Number
targetStart: Number
targetEnd: NumberColorRamp ScaleDomain(
IEnumerable<ColorStop> stops,
double sourceStart,
double sourceEnd,
double targetStart,
double targetEnd)Parameters
| name | type | default | description |
|---|---|---|---|
| stops | IEnumerable<Color Stop> | — | |
| sourceStart | Number | — | |
| sourceEnd | Number | — | |
| targetStart | Number | — | |
| targetEnd | Number | — |
Returns
| result | Color Ramp |
Overload 5 of 7
ScaleDomain -> TextureRamp
ramp: TextureRamp
targetStart: Number
targetEnd: NumberTextureRamp ScaleDomain(
TextureRamp ramp,
double targetStart,
double targetEnd)Parameters
| name | type | default | description |
|---|---|---|---|
| ramp | TextureRamp | — | |
| targetStart | Number | — | |
| targetEnd | Number | — |
Returns
| result | TextureRamp |
Overload 6 of 7
ScaleDomain -> TextureRamp
stops: IEnumerable<TextureStop>
targetStart: Number
targetEnd: NumberTextureRamp ScaleDomain(
IEnumerable<TextureStop> stops,
double targetStart,
double targetEnd)Parameters
| name | type | default | description |
|---|---|---|---|
| stops | IEnumerable<TextureStop> | — | |
| targetStart | Number | — | |
| targetEnd | Number | — |
Returns
| result | TextureRamp |
Overload 7 of 7
ScaleDomain -> TextureRamp
ramp: TextureRamp
sourceStart: Number
sourceEnd: Number
targetStart: Number
targetEnd: NumberTextureRamp ScaleDomain(
TextureRamp ramp,
double sourceStart,
double sourceEnd,
double targetStart,
double targetEnd)Parameters
| name | type | default | description |
|---|---|---|---|
| ramp | TextureRamp | — | |
| sourceStart | Number | — | |
| sourceEnd | Number | — | |
| targetStart | Number | — | |
| targetEnd | Number | — |
Returns
| result | TextureRamp |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Sharpen
FunctionReturns a new ImageProcessor with a sharpen effect applied.
Sharpen -> Pixel Image
image: Pixel Image
amount: Low Accuracy NumberPixelImage Sharpen(PixelImage image, float amount)
Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — | |
| amount | Low Accuracy Number | — | Sharpen intensity. |
Returns
| result | Pixel 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
FunctionThis node carries no documentation.
SplitImageWithOverlap -> Pixel Image Array Array
source: Pixel Image
rows: Integer
columns: Integer
pixelOverlap: IntegerPixelImage[][] SplitImageWithOverlap(
PixelImage source,
int rows,
int columns,
int pixelOverlap = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | |
| rows | Integer | — | |
| columns | Integer | — | |
| pixelOverlap | Integer | 0 |
Returns
| result | Pixel 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
FunctionConverts a grayscale image to a binary image using a threshold.
Threshold -> Grayscale16BitImage
source: I Pixel Image Sampler
thresholdF: Low Accuracy NumberGrayscale16BitImage Threshold(
IPixelImageSampler source,
float thresholdF)Parameters
| name | type | default | description |
|---|---|---|---|
| source | I Pixel Image Sampler | — | Source grayscale image. |
| thresholdF | Low Accuracy Number | — | Threshold in range [0,1]. Values above 1 are clamped. |
Returns
| result | Grayscale16BitImage |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing
Tile Texture
FunctionOverload 1 of 2
TileTexture -> Pixel Image
textureSample: Pixel Image
width: Integer
height: Integer
transform: Image Transform
interpolation: PixelInterpolationPixelImage 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
| name | type | default | description |
|---|---|---|---|
| textureSample | Pixel Image | — | The source texture image to repeat. |
| width | Integer | — | The destination image width in pixels. |
| height | Integer | — | The destination image height in pixels. |
| transform | Image Transform | — | Texture-placement transform applied in destination pixel space. |
| interpolation | PixelInterpolation | Bilinear | The interpolation mode used when sampling the source texture. |
Returns
| result | Pixel 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
TileTexture -> Pixel Image
textureSample: Pixel Image
width: Integer
height: Integer
interpolation: PixelInterpolationPixelImage 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
| name | type | default | description |
|---|---|---|---|
| textureSample | Pixel Image | — | The source texture image to repeat. |
| width | Integer | — | The destination image width in pixels. |
| height | Integer | — | The destination image height in pixels. |
| interpolation | PixelInterpolation | Bilinear | The interpolation mode used when sampling the source texture. |
Returns
| result | Pixel 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
FunctionOverload 1 of 2
TileTextureByCount -> Pixel Image
source: Pixel Image
tileCountU: Integer
tileCountV: Integer
transform: Image Transform
interpolation: PixelInterpolationPixelImage 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
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | The source texture image to repeat. |
| tileCountU | Integer | — | The intended number of source texture repetitions used to derive destination width. |
| tileCountV | Integer | — | The intended number of source texture repetitions used to derive destination height. |
| transform | Image Transform | — | Texture-placement transform applied in destination pixel space. |
| interpolation | PixelInterpolation | Bilinear | The interpolation mode used when sampling the source texture. |
Returns
| result | Pixel 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
TileTextureByCount -> Pixel Image
source: Pixel Image
tileCountU: Integer
tileCountV: Integer
interpolation: PixelInterpolationPixelImage 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
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — | The source texture image to repeat. |
| tileCountU | Integer | — | The intended number of source texture repetitions used to derive destination width. |
| tileCountV | Integer | — | The intended number of source texture repetitions used to derive destination height. |
| interpolation | PixelInterpolation | Bilinear | The interpolation mode used when sampling the source texture. |
Returns
| result | Pixel 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
FunctionTiles Texture Sample into a destination image using stochastic texture tiling.
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: PixelInterpolationPixelImage 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
| name | type | default | description |
|---|---|---|---|
| textureSample | Pixel Image | — | The source texture image to repeat. |
| width | Integer | — | The destination image width in pixels. |
| height | Integer | — | The destination image height in pixels. |
| transform | Image Transform | — | Texture-placement transform applied in destination pixel space. |
| randomTransformRange | Image Transform | — | Maximum per-cell random transform variation. Pivot is ignored. |
| randomizedSamples | Integer | 4 | Number of stochastic samples to blend. Supported values are 1, 4, and 9. |
| seed | Integer | 0 | Deterministic random seed. |
| randomCellSize | Low Accuracy Number | 1 | Stochastic tile stride in repeated source-tile units. |
| interpolation | PixelInterpolation | Bilinear | The interpolation mode used when sampling the source texture. |
Returns
| result | Pixel 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
FunctionReturns a new ImageProcessor with the image converted to grayscale.
ToGrayscale(image: Pixel Image) -> GrayscaleImage
GrayscaleImage ToGrayscale(PixelImage image)
Parameters
| name | type | default | description |
|---|---|---|---|
| image | Pixel Image | — |
Returns
| result | GrayscaleImage |
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
FunctionThis node carries no documentation.
TryExtractQRCode -> (result: Pixel Image, cropExtent: Optional Image Crop Extent2d)
sourceImage: Pixel Image
cropMargin: IntegerPixelImage TryExtractQRCode(
PixelImage sourceImage,
out ImageCropExtent2D? cropExtent,
int cropMargin = 10)Parameters
| name | type | default | description |
|---|---|---|---|
| sourceImage | Pixel Image | — | |
| cropMargin | Integer | 10 |
Returns
| result | Pixel Image |
| cropExtent | Optional 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
FunctionThis node carries no documentation.
TryReadQRCode(sourceImage: Pixel Image) -> Text
string TryReadQRCode(PixelImage sourceImage)
Parameters
| name | type | default | description |
|---|---|---|---|
| sourceImage | Pixel Image | — |
Returns
| result | Text |
- 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
FunctionThis node carries no documentation.
ValidateSourceImageForProcessingInput(source: Pixel Image)
void ValidateSourceImageForProcessingInput(PixelImage source)
Parameters
| name | type | default | description |
|---|---|---|---|
| source | Pixel Image | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Image Processing Routines
- Package
- Image Processing