mmcv.video.flow_warp¶ mmcv.video.flow_warp(img: numpy.ndarray, flow: numpy.ndarray, filling_value: int = 0, interpolate_mode: str = 'nearest') → numpy.ndarray[源代码]¶ Use flow to warp img. 参数 img (ndarray) – Image to be warped. flow (ndarray) – Optical Flow. filling_value (int) – The missing pixels will be set with filling_value. interpolate_mode (str) – bilinear -> Bilinear Interpolation; nearest -> Nearest Neighbor. 返回 Warped image with the same shape of img 返回类型 ndarray