:param prevImg:First 8-bit input image (supports both grayscale and color images).
:param nextImg:Second input image of the same size and the same type as ``prevImg`` .
:param prevPts:Vector of 2D points for which the flow needs to be found. It must be one row matrix with CV_32FC2 type.
:param nextPts:Output vector of 2D points (with single-precision floating-point coordinates) containing the calculated new positions of input features in the second image. When ``useInitialFlow`` is true, the vector must have the same size as in the input.
:param status:Output status vector (CV_8UC1 type). Each element of the vector is set to 1 if the flow for the corresponding features has been found. Otherwise, it is set to 0.
:param err:Output vector (CV_32FC1 type) that contains the difference between patches around the original and moved points or min eigen value if ``getMinEigenVals`` is checked. It can be NULL, if not needed.
:param nextImg:Second input image of the same size and the same type as ``prevImg`` .
:param u:Horizontal component of the optical flow of the same size as input images, 32-bit floating-point, single-channel
:param v:Vertical component of the optical flow of the same size as input images, 32-bit floating-point, single-channel
:param err:Output vector (CV_32FC1 type) that contains the difference between patches around the original and moved points or min eigen value if ``getMinEigenVals`` is checked. It can be NULL, if not needed.
:param frame0:First frame (32-bit floating point images, single channel).
:param frame1:Second frame. Must have the same type and size as ``frame0`` .
:param fu:Forward horizontal displacement.
:param fv:Forward vertical displacement.
:param bu:Backward horizontal displacement.
:param bv:Backward vertical displacement.
:param pos:New frame position.
:param newFrame:Output image.
:param buf:Temporary buffer, will have width x 6*height size, CV_32FC1 type and contain 6 GpuMat: occlusion masks for first frame, occlusion masks for second, interpolated forward horizontal flow, interpolated forward vertical flow, interpolated backward horizontal flow, interpolated backward vertical flow.
:param stream:Stream for the asynchronous version.
..[Brox2004] T. Brox, A. Bruhn, N. Papenberg, J. Weickert. *High accuracy optical flow estimation based on a theory for warping*. ECCV 2004.