TensorMath.applyThreshold
FunctionApplies a fixed-level threshold to each array element.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
applyThreshold(
inTensor,threshold,maxValue,type,outTensor):void
Applies a fixed-level threshold to each array element.
Parameters
| Parameter | Type |
|---|---|
inTensor | Float32Array |
threshold | number |
maxValue | number |
type | ThresholdMethod |
outTensor | Float32Array |
Returns
void