View Source Evision.MCC.CCheckerDraw (Evision v0.1.38)

Summary

Types

t()

Type that represents an MCC.CCheckerDraw struct.

Types

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

Type that represents an MCC.CCheckerDraw struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@spec create(Evision.MCC.CChecker.t()) :: t() | {:error, String.t()}

create

Positional Arguments
  • pChecker: CChecker
Keyword Arguments
  • color: Scalar.
  • thickness: int.
Return
  • retval: CCheckerDraw

\brief Create a new CCheckerDraw object. \param pChecker The checker which will be drawn by this object. \param color The color by with which the squares of the checker

          will be drawn

\param thickness The thickness with which the sqaures will be

              drawn

\return A pointer to the implementation of the CCheckerDraw

Python prototype (for reference only):

create(pChecker[, color[, thickness]]) -> retval
@spec create(Evision.MCC.CChecker.t(), [{atom(), term()}, ...] | nil) ::
  t() | {:error, String.t()}

create

Positional Arguments
  • pChecker: CChecker
Keyword Arguments
  • color: Scalar.
  • thickness: int.
Return
  • retval: CCheckerDraw

\brief Create a new CCheckerDraw object. \param pChecker The checker which will be drawn by this object. \param color The color by with which the squares of the checker

          will be drawn

\param thickness The thickness with which the sqaures will be

              drawn

\return A pointer to the implementation of the CCheckerDraw

Python prototype (for reference only):

create(pChecker[, color[, thickness]]) -> retval
@spec draw(t(), Evision.Mat.maybe_mat_in()) :: Evision.Mat.t() | {:error, String.t()}

draw

Positional Arguments
  • self: Evision.MCC.CCheckerDraw.t()
Return
  • img: Evision.Mat.t()

\brief Draws the checker to the given image. \param img image in color space BGR \return void

Python prototype (for reference only):

draw(img) -> img