View Source Evision.Detail.FeatherBlender (Evision v0.2.9)
Summary
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(t(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in()) :: {Evision.Mat.t(), Evision.Mat.t()} | {:error, String.t()}
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
@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
FeatherBlender
Keyword Arguments
- sharpness:
float
.
Return
- self:
Evision.Detail.FeatherBlender.t()
Python prototype (for reference only):
FeatherBlender([, sharpness]) -> <detail_FeatherBlender object>
@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( t(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in(), {number(), number()} ) :: t() | {:error, String.t()}
feed
Positional Arguments
- self:
Evision.Detail.FeatherBlender.t()
- img:
Evision.Mat
- mask:
Evision.Mat
- tl:
Point
Python prototype (for reference only):
feed(img, mask, tl) -> None
prepare
Positional Arguments
- self:
Evision.Detail.FeatherBlender.t()
- dst_roi:
Rect
Python prototype (for reference only):
prepare(dst_roi) -> None
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