View Source Evision.DenseOpticalFlow (Evision v0.1.14)

Link to this section Summary

Types

t()

Type that represents an Evision.DenseOpticalFlow struct.

Functions

Calculates an optical flow.

Releases all inner buffers.

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

Link to this function

calc(self, i0, i1, flow)

View Source

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
@spec collectGarbage(t()) :: :ok | {:error, String.t()}

Releases all inner buffers.

Python prototype (for reference):

collectGarbage() -> None