Skip to main content

TensorMath.dilate

Function

Dilates an image by using a specific structuring element.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

dilate(inTensor, inShape, kernelTensor, kernelShape, anchor, iterations, borderType, borderValue, outTensor): void

Dilates an image by using a specific structuring element.

Parameters

ParameterType
inTensorFloat32Array
inShapevec3
kernelTensorFloat32Array
kernelShapevec3
anchorvec2
iterationsnumber
borderTypeBorderType
borderValuevec4
outTensorFloat32Array

Returns

void