mmcv/visualization/optflow.py
def flowshow(flow, win_name='', wait_time=0):
    """Show optical flow.

    Args:
        flow (ndarray or str): The optical flow to be displayed.
        win_name (str): The window name.
        wait_time (int): Value of waitKey param.
    """
    flow = flowread(flow)
    flow_img = flow2rgb(flow)
    imshow(rgb2bgr(flow_img), win_name, wait_time)
def flowshow(flow, win_name='', wait_time=0):
    flow = flowread(flow)
    flow_img = flow2rgb(flow)
    imshow(rgb2bgr(flow_img), win_name, wait_time)
def flowshow ( flow , win_name = '' , wait_time = 0 ) : flow = flowread ( flow ) flow_img = flow2rgb ( flow ) imshow ( rgb2bgr ( flow_img ) , win_name , wait_time )
Show optical flow.

    Args:
        flow (ndarray or str): The optical flow to be displayed.
        win_name (str): The window name.
        wait_time (int): Value of waitKey param.
Show optical flow .