TensorMath.minInSlideWindow
FunctionIf we consider the tensor as a 3D array, this function finds the indexes of the minimum element in each subarray of size window.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
minInSlideWindow(
tensor,tensorShape,window,output):void
If we consider the tensor as a 3D array, this function finds the indexes of the minimum element in each subarray of size window.
tensor - Float32Array of size (width * height * depth). 3D array of input data
tensorShape - Should be {width, height, depth}
window - Size of each subarray, in each of which will be found the index of the min element
output - Float32Array of size (width * height * depth). The index of the min value will be written into this array for each subarray.
Parameters
Returns
void