View Source Evision.Detail.Blender (Evision v0.2.9)

Summary

Types

t()

Type that represents an Detail.Blender struct.

Enumerator

Types

@type enum() :: integer()
@type t() :: %Evision.Detail.Blender{ref: reference()}

Type that represents an Detail.Blender struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

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

blend(self, dst, dst_mask)

View Source

Blends and returns the final pano.

Positional Arguments
  • self: Evision.Detail.Blender.t()
Return
  • dst: Evision.Mat.t().

    Final pano

  • dst_mask: Evision.Mat.t().

    Final pano mask

Python prototype (for reference only):

blend(dst, dst_mask) -> dst, dst_mask
Link to this function

createDefault(named_args)

View Source
@spec createDefault(Keyword.t()) :: any() | {:error, String.t()}
@spec createDefault(integer()) :: t() | {:error, String.t()}

createDefault

Positional Arguments
  • type: integer()
Keyword Arguments
  • try_gpu: bool.
Return
  • retval: Evision.Detail.Blender.t()

Python prototype (for reference only):

createDefault(type[, try_gpu]) -> retval
Link to this function

createDefault(type, opts)

View Source
@spec createDefault(integer(), [{:try_gpu, term()}] | nil) ::
  t() | {:error, String.t()}

createDefault

Positional Arguments
  • type: integer()
Keyword Arguments
  • try_gpu: bool.
Return
  • retval: Evision.Detail.Blender.t()

Python prototype (for reference only):

createDefault(type[, try_gpu]) -> retval
@spec feed(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

feed(self, img, mask, tl)

View Source
@spec feed(
  t(),
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in(),
  {number(), number()}
) ::
  t() | {:error, String.t()}

Processes the image.

Positional Arguments
  • self: Evision.Detail.Blender.t()

  • img: Evision.Mat.

    Source image

  • mask: Evision.Mat.

    Source image mask

  • tl: Point.

    Source image top-left corners

Python prototype (for reference only):

feed(img, mask, tl) -> None
@spec prepare(Keyword.t()) :: any() | {:error, String.t()}
@spec prepare(t(), {number(), number(), number(), number()}) ::
  t() | {:error, String.t()}

prepare

Positional Arguments
  • self: Evision.Detail.Blender.t()
  • dst_roi: Rect

Has overloading in C++

Python prototype (for reference only):

prepare(dst_roi) -> None
Link to this function

prepare(self, corners, sizes)

View Source
@spec prepare(t(), [{number(), number()}], [{number(), number()}]) ::
  t() | {:error, String.t()}

Prepares the blender for blending.

Positional Arguments
  • self: Evision.Detail.Blender.t()

  • corners: [Point].

    Source images top-left corners

  • sizes: [Size].

    Source image sizes

Python prototype (for reference only):

prepare(corners, sizes) -> None