[][src]Function opencv::video::write_optical_flow

pub fn write_optical_flow(path: &str, flow: &dyn ToInputArray) -> Result<bool>

Write a .flo to disk

Parameters

  • path: Path to the file to be written
  • flow: Flow field to be stored

The function stores a flow field in a file, returns true on success, false otherwise. The flow field must be a 2-channel, floating-point matrix (CV_32FC2). First channel corresponds to the flow in the horizontal direction (u), second - vertical (v).