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

Link to this section Summary

Types

t()

Type that represents an Evision.Detail.Blender struct.

Functions

Blends and returns the final pano.

Positional Arguments
  • type: int
Keyword Arguments
  • try_gpu: bool.
Return

Python prototype (for reference):

Positional Arguments
  • type: int
Keyword Arguments
  • try_gpu: bool.
Return

Python prototype (for reference):

Processes the image.

Positional Arguments
  • dst_roi: Rect

Has overloading in C++

Prepares the blender for blending.

Link to this section Types

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

Type that represents an Evision.Detail.Blender struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

Link to this function

blend(self, dst, dst_mask)

View Source

Blends and returns the final pano.

Return

Python prototype (for reference):

blend(dst, dst_mask) -> dst, dst_mask
@spec createDefault(integer()) :: t() | {:error, String.t()}
Positional Arguments
  • type: int
Keyword Arguments
  • try_gpu: bool.
Return

Python prototype (for reference):

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

createDefault(type, opts)

View Source
@spec createDefault(integer(), [{atom(), term()}, ...] | nil) ::
  t() | {:error, String.t()}
Positional Arguments
  • type: int
Keyword Arguments
  • try_gpu: bool.
Return

Python prototype (for reference):

createDefault(type[, try_gpu]) -> retval
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()}
) ::
  :ok | {:error, String.t()}

Processes the image.

Positional Arguments

Python prototype (for reference):

feed(img, mask, tl) -> None
@spec prepare(t(), {number(), number(), number(), number()}) ::
  :ok | {:error, String.t()}
Positional Arguments
  • dst_roi: Rect

Has overloading in C++

Python prototype (for reference):

prepare(dst_roi) -> None
Link to this function

prepare(self, corners, sizes)

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

Prepares the blender for blending.

Positional Arguments
  • corners: [Point].

    Source images top-left corners

  • sizes: [Size].

    Source image sizes

Python prototype (for reference):

prepare(corners, sizes) -> None