TensorMath.dilate
FunctionDilates an image by using a specific structuring element.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, 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
| Parameter | Type |
|---|---|
inTensor | Float32Array |
inShape | vec3 |
kernelTensor | Float32Array |
kernelShape | vec3 |
anchor | vec2 |
iterations | number |
borderType | BorderType |
borderValue | vec4 |
outTensor | Float32Array |
Returns
void