Skip to main content

TensorMath.powerToDb

Function

Converts inTensor from the power scale to the decibel scale.

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

powerToDb(inTensor, topDb, outTensor): void

Converts inTensor from the power scale to the decibel scale.

Parameters

ParameterType
inTensorFloat32Array
topDbnumber
outTensorFloat32Array

Returns

void