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

Summary

Types

t()

Type that represents an Detail.FeatherBlender struct.

Types

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

Type that represents an Detail.FeatherBlender 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

blend

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

Python prototype (for reference only):

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

createWeightMaps(named_args)

View Source
@spec createWeightMaps(Keyword.t()) :: any() | {:error, String.t()}
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
  • self: Evision.Detail.FeatherBlender.t()

Python prototype (for reference only):

FeatherBlender([, sharpness]) -> <detail_FeatherBlender object>
Link to this function

featherBlender(named_args)

View Source
@spec featherBlender(Keyword.t()) :: any() | {:error, String.t()}
@spec featherBlender([{:sharpness, term()}] | nil) :: t() | {:error, String.t()}

FeatherBlender

Keyword Arguments
  • sharpness: float.
Return
  • self: Evision.Detail.FeatherBlender.t()

Python prototype (for reference only):

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

feed

Positional Arguments

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.FeatherBlender.t()
  • dst_roi: Rect

Python prototype (for reference only):

prepare(dst_roi) -> None
Link to this function

setSharpness(named_args)

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

setSharpness

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

Python prototype (for reference only):

setSharpness(val) -> None
@spec sharpness(Keyword.t()) :: any() | {:error, String.t()}
@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