View Source Evision.CUDA.BackgroundSubtractorMOG2 (Evision v0.2.9)

Summary

Types

t()

Type that represents an CUDA.BackgroundSubtractorMOG2 struct.

Types

@type t() :: %Evision.CUDA.BackgroundSubtractorMOG2{ref: reference()}

Type that represents an CUDA.BackgroundSubtractorMOG2 struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@spec apply(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

apply(self, image, learningRate, stream)

View Source
@spec apply(
  Evision.CUDA.CUDA.BackgroundSubtractorMOG2.t(),
  Evision.Mat.maybe_mat_in(),
  number(),
  Evision.CUDA.Stream.t()
) :: Evision.Mat.t() | {:error, String.t()}
@spec apply(
  Evision.CUDA.CUDA.BackgroundSubtractorMOG2.t(),
  Evision.CUDA.GpuMat.t(),
  number(),
  Evision.CUDA.Stream.t()
) :: Evision.CUDA.GpuMat.t() | {:error, String.t()}

Variant 1:

apply

Positional Arguments
  • self: Evision.CUDA.BackgroundSubtractorMOG2.t()
  • image: Evision.Mat
  • learningRate: double
  • stream: Evision.CUDA.Stream.t()
Return
  • fgmask: Evision.Mat.t().

Python prototype (for reference only):

apply(image, learningRate, stream[, fgmask]) -> fgmask

Variant 2:

apply

Positional Arguments
  • self: Evision.CUDA.BackgroundSubtractorMOG2.t()
  • image: Evision.CUDA.GpuMat.t()
  • learningRate: double
  • stream: Evision.CUDA.Stream.t()
Return
  • fgmask: Evision.CUDA.GpuMat.t().

Python prototype (for reference only):

apply(image, learningRate, stream[, fgmask]) -> fgmask
Link to this function

apply(self, image, learningRate, stream, opts)

View Source
@spec apply(
  Evision.CUDA.CUDA.BackgroundSubtractorMOG2.t(),
  Evision.Mat.maybe_mat_in(),
  number(),
  Evision.CUDA.Stream.t(),
  [{atom(), term()}, ...] | nil
) :: Evision.Mat.t() | {:error, String.t()}
@spec apply(
  Evision.CUDA.CUDA.BackgroundSubtractorMOG2.t(),
  Evision.CUDA.GpuMat.t(),
  number(),
  Evision.CUDA.Stream.t(),
  [{atom(), term()}, ...] | nil
) :: Evision.CUDA.GpuMat.t() | {:error, String.t()}

Variant 1:

apply

Positional Arguments
  • self: Evision.CUDA.BackgroundSubtractorMOG2.t()
  • image: Evision.Mat
  • learningRate: double
  • stream: Evision.CUDA.Stream.t()
Return
  • fgmask: Evision.Mat.t().

Python prototype (for reference only):

apply(image, learningRate, stream[, fgmask]) -> fgmask

Variant 2:

apply

Positional Arguments
  • self: Evision.CUDA.BackgroundSubtractorMOG2.t()
  • image: Evision.CUDA.GpuMat.t()
  • learningRate: double
  • stream: Evision.CUDA.Stream.t()
Return
  • fgmask: Evision.CUDA.GpuMat.t().

Python prototype (for reference only):

apply(image, learningRate, stream[, fgmask]) -> fgmask
Link to this function

getBackgroundImage(named_args)

View Source
@spec getBackgroundImage(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

getBackgroundImage(self, stream)

View Source
@spec getBackgroundImage(
  Evision.CUDA.CUDA.BackgroundSubtractorMOG2.t(),
  Evision.CUDA.Stream.t()
) ::
  Evision.CUDA.GpuMat.t() | {:error, String.t()}

getBackgroundImage

Positional Arguments
  • self: Evision.CUDA.BackgroundSubtractorMOG2.t()
  • stream: Evision.CUDA.Stream.t()
Return
  • backgroundImage: Evision.CUDA.GpuMat.t().

Python prototype (for reference only):

getBackgroundImage(stream[, backgroundImage]) -> backgroundImage
Link to this function

getBackgroundImage(self, stream, opts)

View Source
@spec getBackgroundImage(
  Evision.CUDA.CUDA.BackgroundSubtractorMOG2.t(),
  Evision.CUDA.Stream.t(),
  [{atom(), term()}, ...] | nil
) :: Evision.CUDA.GpuMat.t() | {:error, String.t()}

getBackgroundImage

Positional Arguments
  • self: Evision.CUDA.BackgroundSubtractorMOG2.t()
  • stream: Evision.CUDA.Stream.t()
Return
  • backgroundImage: Evision.CUDA.GpuMat.t().

Python prototype (for reference only):

getBackgroundImage(stream[, backgroundImage]) -> backgroundImage