View Source Evision.CUDA.BackgroundSubtractorMOG2 (Evision v0.2.9)
Summary
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( 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
@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
@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
@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