View Source Evision.DenseOpticalFlow (Evision v0.1.10)
Link to this section Summary
Types
Type that represents an Evision.DenseOpticalFlow
struct.
Link to this section Types
@type t() :: %Evision.DenseOpticalFlow{ref: reference()}
Type that represents an Evision.DenseOpticalFlow
struct.
ref.
reference()
The underlying erlang resource variable.
Link to this section Functions
@spec calc( t(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in() ) :: Evision.Mat.t() | {:error, String.t()}
Calculates an optical flow.
Positional Arguments
i0:
Evision.Mat
.first 8-bit single-channel input image.
i1:
Evision.Mat
.second input image of the same size and the same type as prev.
Return
flow:
Evision.Mat
.computed flow image that has the same size as prev and type CV_32FC2.
Python prototype (for reference):
calc(I0, I1, flow) -> flow
Releases all inner buffers.
Python prototype (for reference):
collectGarbage() -> None