Skip to main content

TensorMath.applyBoxFilter

Function

Blurs an image tensor using the box filter.

  • 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.

applyBoxFilter(inTensor, inShape, kernelSize, anchor, normalize, borderType, outTensor): void

Blurs an image tensor using the box filter.

Parameters

ParameterType
inTensorFloat32Array
inShapevec3
kernelSizevec2
anchorvec2
normalizeboolean
borderTypeBorderType
outTensorFloat32Array

Returns

void