TensorMath.applyBoxFilter
FunctionBlurs an image tensor using the box filter.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
applyBoxFilter(
inTensor,inShape,kernelSize,anchor,normalize,borderType,outTensor):void
Blurs an image tensor using the box filter.
Parameters
| Parameter | Type |
|---|---|
inTensor | Float32Array |
inShape | vec3 |
kernelSize | vec2 |
anchor | vec2 |
normalize | boolean |
borderType | BorderType |
outTensor | Float32Array |
Returns
void