View Source Evision.LineMod.QuantizedPyramid (Evision v0.1.38)

Summary

Types

t()

Type that represents an LineMod.QuantizedPyramid struct.

Types

@type t() :: %Evision.LineMod.QuantizedPyramid{ref: reference()}

Type that represents an LineMod.QuantizedPyramid struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@spec extractTemplate(t()) ::
  Evision.LineMod.Template.t() | false | {:error, String.t()}

extractTemplate

Positional Arguments
  • self: Evision.LineMod.QuantizedPyramid.t()
Return
  • retval: bool
  • templ: Evision.LineMod.Template.t()

\brief Extract most discriminant features at current pyramid level to form a new template. \param[out] templ The new template.

Python prototype (for reference only):

extractTemplate() -> retval, templ
@spec pyrDown(t()) :: t() | {:error, String.t()}

pyrDown

Positional Arguments
  • self: Evision.LineMod.QuantizedPyramid.t()

\brief Go to the next pyramid level. \todo Allow pyramid scale factor other than 2

Python prototype (for reference only):

pyrDown() -> None
@spec quantize(t()) :: Evision.Mat.t() | {:error, String.t()}

quantize

Positional Arguments
  • self: Evision.LineMod.QuantizedPyramid.t()
Return
  • dst: Evision.Mat.t().

\brief Compute quantized image at current pyramid level for online detection. \param[out] dst The destination 8-bit image. For each pixel at most one bit is set,

             representing its classification.

Python prototype (for reference only):

quantize([, dst]) -> dst
@spec quantize(t(), [{atom(), term()}, ...] | nil) ::
  Evision.Mat.t() | {:error, String.t()}

quantize

Positional Arguments
  • self: Evision.LineMod.QuantizedPyramid.t()
Return
  • dst: Evision.Mat.t().

\brief Compute quantized image at current pyramid level for online detection. \param[out] dst The destination 8-bit image. For each pixel at most one bit is set,

             representing its classification.

Python prototype (for reference only):

quantize([, dst]) -> dst