View Source Evision.LineMod (Evision v0.1.38)

Summary

Types

t()

Type that represents an LineMod struct.

Types

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

Type that represents an LineMod struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@spec colormap(Evision.Mat.maybe_mat_in()) :: Evision.Mat.t() | {:error, String.t()}

colormap

Positional Arguments
  • quantized: Evision.Mat.t()
Return
  • dst: Evision.Mat.t().

\brief Debug function to colormap a quantized image for viewing.

Python prototype (for reference only):

colormap(quantized[, dst]) -> dst
Link to this function

colormap(quantized, opts)

View Source
@spec colormap(Evision.Mat.maybe_mat_in(), [{atom(), term()}, ...] | nil) ::
  Evision.Mat.t() | {:error, String.t()}

colormap

Positional Arguments
  • quantized: Evision.Mat.t()
Return
  • dst: Evision.Mat.t().

\brief Debug function to colormap a quantized image for viewing.

Python prototype (for reference only):

colormap(quantized[, dst]) -> dst
Link to this function

drawFeatures(img, templates, tl)

View Source
@spec drawFeatures(
  Evision.Mat.maybe_mat_in(),
  [Evision.LineMod.Template.t()],
  {integer(), integer()}
) ::
  Evision.Mat.t() | {:error, String.t()}

drawFeatures

Positional Arguments
  • templates: [Evision.LineMod.Template].

    see @ref Detector::addTemplate

  • tl: Point2i.

    template bbox top-left offset see @ref Detector::addTemplate

Keyword Arguments
  • size: int.

    marker size see @ref cv::drawMarker

Return
  • img: Evision.Mat.t().

\brief Debug function to draw linemod features

Python prototype (for reference only):

drawFeatures(img, templates, tl[, size]) -> img
Link to this function

drawFeatures(img, templates, tl, opts)

View Source
@spec drawFeatures(
  Evision.Mat.maybe_mat_in(),
  [Evision.LineMod.Template.t()],
  {integer(), integer()},
  [{atom(), term()}, ...] | nil
) :: Evision.Mat.t() | {:error, String.t()}

drawFeatures

Positional Arguments
  • templates: [Evision.LineMod.Template].

    see @ref Detector::addTemplate

  • tl: Point2i.

    template bbox top-left offset see @ref Detector::addTemplate

Keyword Arguments
  • size: int.

    marker size see @ref cv::drawMarker

Return
  • img: Evision.Mat.t().

\brief Debug function to draw linemod features

Python prototype (for reference only):

drawFeatures(img, templates, tl[, size]) -> img
@spec getDefaultLINE() :: Evision.LineMod.Detector.t() | {:error, String.t()}

getDefaultLINE

Return
  • retval: Evision.LineMod.Detector.t()

\brief Factory function for detector using LINE algorithm with color gradients. Default parameter settings suitable for VGA images.

Python prototype (for reference only):

getDefaultLINE() -> retval
@spec getDefaultLINEMOD() :: Evision.LineMod.Detector.t() | {:error, String.t()}

getDefaultLINEMOD

Return
  • retval: Evision.LineMod.Detector.t()

\brief Factory function for detector using LINE-MOD algorithm with color gradients and depth normals. Default parameter settings suitable for VGA images.

Python prototype (for reference only):

getDefaultLINEMOD() -> retval