Skip to main content

TensorMath.applyThreshold

Function

Applies a fixed-level threshold to each array 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.

applyThreshold(inTensor, threshold, maxValue, type, outTensor): void

Applies a fixed-level threshold to each array element.

Parameters

ParameterType
inTensorFloat32Array
thresholdnumber
maxValuenumber
typeThresholdMethod
outTensorFloat32Array

Returns

void