Stabilizes image objects between two consecutive frames caused by camera or object movement. Results are written to the points array.
points
prevGrayscale - Uint8Array of size (width * height). Grayscale data of previous frame
prevGrayscale
grayscale - Uint8Array of size (width * height). Grayscale data of current frame
grayscale
textureShape - Should be {width, height, 1}
textureShape
prevPoints - Float32Array of size (point count * 2). Positions of 2D points on the previous frame
prevPoints
points - Float32Array of size (point count * 2). Results are written here - positions of 2D points on the current frame
pointsShape - Should be {2, point count, 1}
pointsShape
winSize - Size of the search window for each pyramid level
winSize
maxLevel - Maximal pyramid level number, with zero based index
maxLevel
maxCount - Terminate if iteration count exceeds maxCount
maxCount
epsilon - Terminate if window movement is less than epsilon
epsilon
Stabilizes image objects between two consecutive frames caused by camera or object movement. Results are written to the
pointsarray.prevGrayscale- Uint8Array of size (width * height). Grayscale data of previous framegrayscale- Uint8Array of size (width * height). Grayscale data of current frametextureShape- Should be {width, height, 1}prevPoints- Float32Array of size (point count * 2). Positions of 2D points on the previous framepoints- Float32Array of size (point count * 2). Results are written here - positions of 2D points on the current framepointsShape- Should be {2, point count, 1}winSize- Size of the search window for each pyramid levelmaxLevel- Maximal pyramid level number, with zero based indexmaxCount- Terminate if iteration count exceeds maxCountepsilon- Terminate if window movement is less than epsilon