Class: TensorUtils

PhotoEditorSDK.Operations~ArtFilterOperation. TensorUtils

new PhotoEditorSDK.Operations.ArtFilterOperation.TensorUtils()

sdk/operations/art-filter-operation/filters/tensor-utils.js, line 20

Methods

staticPhotoEditorSDK.Operations.ArtFilterOperation.TensorUtils.getTextureDimensionsForLogicalShape(logShape, maxTexSize){Array.<number>}

sdk/operations/art-filter-operation/filters/tensor-utils.js, line 36
Name Type Default Description
logShape Array.<number>

The logical shape to find a texture size for

maxTexSize * 2048

The maximum edge length of a WebGL texture. Defaults to the WebGL minimum of 4096.

Returns:
Type Description
Array.<number> textureDimensions - The required texture dimensions in a [height, width] array

staticPhotoEditorSDK.Operations.ArtFilterOperation.TensorUtils.isSameShape(shapeA, shapeB){bool}

sdk/operations/art-filter-operation/filters/tensor-utils.js, line 77
Name Type Description
shapeA Array.<number>
shapeB Array.<number>
Returns:
Type Description
bool