View Source Evision.Detail.FeatherBlender (Evision v0.1.21)

Link to this section Summary

Types

t()

Type that represents an Evision.Detail.FeatherBlender struct.

Link to this section Types

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

Type that represents an Evision.Detail.FeatherBlender struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

Link to this function

blend(self, dst, dst_mask)

View Source

blend

Positional Arguments
  • self: Evision.Detail.FeatherBlender.t()
Return

Python prototype (for reference only):

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

createWeightMaps(self, masks, corners, weight_maps)

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

createWeightMaps

Positional Arguments
  • self: Evision.Detail.FeatherBlender.t()
  • masks: [Evision.Mat]
  • corners: [Point]
Return
  • retval: Rect
  • weight_maps: [Evision.Mat]

Python prototype (for reference only):

createWeightMaps(masks, corners, weight_maps) -> retval, weight_maps
@spec featherBlender() :: t() | {:error, String.t()}

FeatherBlender

Keyword Arguments
  • sharpness: float.
Return

Python prototype (for reference only):

FeatherBlender([, sharpness]) -> <detail_FeatherBlender object>
@spec featherBlender([{atom(), term()}, ...] | nil) :: t() | {:error, String.t()}

FeatherBlender

Keyword Arguments
  • sharpness: float.
Return

Python prototype (for reference only):

FeatherBlender([, sharpness]) -> <detail_FeatherBlender object>
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()}

feed

Positional Arguments

Python prototype (for reference only):

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

prepare

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

Python prototype (for reference only):

prepare(dst_roi) -> None
@spec setSharpness(t(), number()) :: :ok | {:error, String.t()}

setSharpness

Positional Arguments
  • self: Evision.Detail.FeatherBlender.t()
  • val: float

Python prototype (for reference only):

setSharpness(val) -> None
@spec sharpness(t()) :: number() | {:error, String.t()}

sharpness

Positional Arguments
  • self: Evision.Detail.FeatherBlender.t()
Return
  • retval: float

Python prototype (for reference only):

sharpness() -> retval