Functions reading and writing .flo files in “Middlebury” format, see: [MiddleburyFlo]
Read a .flo file
Parameters: |
|
---|
The function readOpticalFlow loads a flow field from a file and returns it as a single matrix. Resulting Mat has a type CV_32FC2 - floating-point, 2-channel. First channel corresponds to the flow in the horizontal direction (u), second - vertical (v).
Write a .flo to disk
param path: Path to the file to be written param 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).
[MiddleburyFlo] | http://vision.middlebury.edu/flow/code/flow-code/README.txt |