View Source Evision.Detail.GraphCutSeamFinder (Evision v0.1.37)

Summary

Types

t()

Type that represents an Detail.GraphCutSeamFinder struct.

Types

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

Type that represents an Detail.GraphCutSeamFinder struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

Link to this function

find(self, src, corners, masks)

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

find

Positional Arguments
  • self: Evision.Detail.GraphCutSeamFinder.t()
  • src: [Evision.Mat]
  • corners: [Point]
Return
  • masks: [Evision.Mat]

Python prototype (for reference only):

find(src, corners, masks) -> masks
Link to this function

graphCutSeamFinder(cost_type)

View Source
@spec graphCutSeamFinder(binary()) :: t() | {:error, String.t()}

GraphCutSeamFinder

Positional Arguments
Keyword Arguments
  • terminal_cost: float.
  • bad_region_penalty: float.
Return
  • self: Evision.Detail.GraphCutSeamFinder.t()

Python prototype (for reference only):

GraphCutSeamFinder(cost_type[, terminal_cost[, bad_region_penalty]]) -> <detail_GraphCutSeamFinder object>
Link to this function

graphCutSeamFinder(cost_type, opts)

View Source
@spec graphCutSeamFinder(binary(), [{atom(), term()}, ...] | nil) ::
  t() | {:error, String.t()}

GraphCutSeamFinder

Positional Arguments
Keyword Arguments
  • terminal_cost: float.
  • bad_region_penalty: float.
Return
  • self: Evision.Detail.GraphCutSeamFinder.t()

Python prototype (for reference only):

GraphCutSeamFinder(cost_type[, terminal_cost[, bad_region_penalty]]) -> <detail_GraphCutSeamFinder object>