estimateFlow
Description
estimates the optical flow between the current frame flow
= estimateFlow(flowModel
,I
)I
and the previous
frame using the recurrent all-pairs field transforms (RAFT) deep learning algorithm.
RAFT optical flow estimation outperforms methods like Farneback by delivering higher accuracy, particularly in areas with minimal texture and under difficult camera movements.
specifies options using one or more name-value arguments in addition to the previous syntax.
For example, flow
= estimateFlow(flowModel
,I
,Name=Value
)MaxIterations=10
sets the number of refinement iterations to
10
.
Examples
Input Arguments
Output Arguments
Tips
Using RAFT for optical flow estimation on a GPU requires a minimum of 12 GB of memory.
The RAFT model, being fully convolutional, can process images of any size in theory, with the only limitation being the available GPU memory.
Extended Capabilities
Version History
Introduced in R2024b