View Source Evision.Utils (Evision v0.2.9)

Summary

Types

t()

Type that represents an Utils struct.

Functions

copyMatAndDumpNamedArguments

copyMatAndDumpNamedArguments

dumpInputArrayOfArrays

dumpInputOutputArray

dumpInputOutputArrayOfArrays

dumpRotatedRect

dumpTermCriteria

dumpVec2i

dumpVectorOfDouble

dumpVectorOfInt

dumpVectorOfRect

generateVectorOfInt

generateVectorOfRect

testAsyncException

Variant 1:

testOverloadResolution

testOverloadResolution

testOverwriteNativeMethod

testRaiseGeneralException

testReservedKeywordConversion

Types

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

Type that represents an Utils struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

Link to this function

copyMatAndDumpNamedArguments(named_args)

View Source
@spec copyMatAndDumpNamedArguments(Keyword.t()) :: any() | {:error, String.t()}
@spec copyMatAndDumpNamedArguments(Evision.Mat.maybe_mat_in()) ::
  {binary(), Evision.Mat.t()} | {:error, String.t()}

copyMatAndDumpNamedArguments

Positional Arguments
Keyword Arguments
  • params: FunctionParams.
Return
  • retval: String
  • dst: Evision.Mat.t().

Python prototype (for reference only):

copyMatAndDumpNamedArguments(src[, dst[, params]]) -> retval, dst
Link to this function

copyMatAndDumpNamedArguments(src, opts)

View Source
@spec copyMatAndDumpNamedArguments(
  Evision.Mat.maybe_mat_in(),
  [{:params, term()}] | nil
) ::
  {binary(), Evision.Mat.t()} | {:error, String.t()}

copyMatAndDumpNamedArguments

Positional Arguments
Keyword Arguments
  • params: FunctionParams.
Return
  • retval: String
  • dst: Evision.Mat.t().

Python prototype (for reference only):

copyMatAndDumpNamedArguments(src[, dst[, params]]) -> retval, dst
@spec dumpBool(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpBool(boolean()) :: binary() | {:error, String.t()}

dumpBool

Positional Arguments
  • argument: bool
Return

Python prototype (for reference only):

dumpBool(argument) -> retval
@spec dumpCString(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpCString(binary()) :: binary() | {:error, String.t()}

dumpCString

Positional Arguments
  • argument: c_string
Return

Python prototype (for reference only):

dumpCString(argument) -> retval
@spec dumpDouble(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpDouble(number()) :: binary() | {:error, String.t()}

dumpDouble

Positional Arguments
  • argument: double
Return

Python prototype (for reference only):

dumpDouble(argument) -> retval
@spec dumpFloat(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpFloat(number()) :: binary() | {:error, String.t()}

dumpFloat

Positional Arguments
  • argument: float
Return

Python prototype (for reference only):

dumpFloat(argument) -> retval
Link to this function

dumpInputArray(named_args)

View Source
@spec dumpInputArray(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpInputArray(Evision.Mat.maybe_mat_in()) :: binary() | {:error, String.t()}

dumpInputArray

Positional Arguments
Return

Python prototype (for reference only):

dumpInputArray(argument) -> retval
Link to this function

dumpInputArrayOfArrays(named_args)

View Source
@spec dumpInputArrayOfArrays(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpInputArrayOfArrays([Evision.Mat.maybe_mat_in()]) ::
  binary() | {:error, String.t()}

dumpInputArrayOfArrays

Positional Arguments
  • argument: [Evision.Mat]
Return

Python prototype (for reference only):

dumpInputArrayOfArrays(argument) -> retval
Link to this function

dumpInputOutputArray(named_args)

View Source
@spec dumpInputOutputArray(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpInputOutputArray(Evision.Mat.maybe_mat_in()) ::
  {binary(), Evision.Mat.t()} | {:error, String.t()}

dumpInputOutputArray

Return
  • retval: String
  • argument: Evision.Mat.t()

Python prototype (for reference only):

dumpInputOutputArray(argument) -> retval, argument
Link to this function

dumpInputOutputArrayOfArrays(named_args)

View Source
@spec dumpInputOutputArrayOfArrays(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpInputOutputArrayOfArrays([Evision.Mat.maybe_mat_in()]) ::
  {binary(), [Evision.Mat.t()]} | {:error, String.t()}

dumpInputOutputArrayOfArrays

Return
  • retval: String
  • argument: [Evision.Mat]

Python prototype (for reference only):

dumpInputOutputArrayOfArrays(argument) -> retval, argument
@spec dumpInt64(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpInt64(integer()) :: binary() | {:error, String.t()}

dumpInt64

Positional Arguments
  • argument: int64
Return

Python prototype (for reference only):

dumpInt64(argument) -> retval
@spec dumpInt(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpInt(integer()) :: binary() | {:error, String.t()}

dumpInt

Positional Arguments
  • argument: integer()
Return

Python prototype (for reference only):

dumpInt(argument) -> retval
@spec dumpRange(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpRange({integer(), integer()} | :all) :: binary() | {:error, String.t()}

dumpRange

Positional Arguments
Return

Python prototype (for reference only):

dumpRange(argument) -> retval
@spec dumpRect(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpRect({number(), number(), number(), number()}) ::
  binary() | {:error, String.t()}

dumpRect

Positional Arguments
  • argument: Rect
Return

Python prototype (for reference only):

dumpRect(argument) -> retval
Link to this function

dumpRotatedRect(named_args)

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

dumpRotatedRect

Positional Arguments
  • argument: {centre={x, y}, size={s1, s2}, angle}
Return

Python prototype (for reference only):

dumpRotatedRect(argument) -> retval
@spec dumpSizeT(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpSizeT(integer()) :: binary() | {:error, String.t()}

dumpSizeT

Positional Arguments
  • argument: size_t
Return

Python prototype (for reference only):

dumpSizeT(argument) -> retval
@spec dumpString(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpString(binary()) :: binary() | {:error, String.t()}

dumpString

Positional Arguments
Return

Python prototype (for reference only):

dumpString(argument) -> retval
Link to this function

dumpTermCriteria(named_args)

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

dumpTermCriteria

Positional Arguments
  • argument: TermCriteria
Return

Python prototype (for reference only):

dumpTermCriteria(argument) -> retval
@spec dumpVec2i() :: binary() | {:error, String.t()}

dumpVec2i

Keyword Arguments
  • value: Vec2i.
Return

Python prototype (for reference only):

dumpVec2i([, value]) -> retval
@spec dumpVec2i(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpVec2i([{:value, term()}] | nil) :: binary() | {:error, String.t()}

dumpVec2i

Keyword Arguments
  • value: Vec2i.
Return

Python prototype (for reference only):

dumpVec2i([, value]) -> retval
Link to this function

dumpVectorOfDouble(named_args)

View Source
@spec dumpVectorOfDouble(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpVectorOfDouble([number()]) :: binary() | {:error, String.t()}

dumpVectorOfDouble

Positional Arguments
  • vec: [double]
Return

Python prototype (for reference only):

dumpVectorOfDouble(vec) -> retval
Link to this function

dumpVectorOfInt(named_args)

View Source
@spec dumpVectorOfInt(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpVectorOfInt([integer()]) :: binary() | {:error, String.t()}

dumpVectorOfInt

Positional Arguments
  • vec: [integer()]
Return

Python prototype (for reference only):

dumpVectorOfInt(vec) -> retval
Link to this function

dumpVectorOfRect(named_args)

View Source
@spec dumpVectorOfRect(Keyword.t()) :: any() | {:error, String.t()}
@spec dumpVectorOfRect([{number(), number(), number(), number()}]) ::
  binary() | {:error, String.t()}

dumpVectorOfRect

Positional Arguments
  • vec: [Rect]
Return

Python prototype (for reference only):

dumpVectorOfRect(vec) -> retval
Link to this function

generateVectorOfInt(named_args)

View Source
@spec generateVectorOfInt(Keyword.t()) :: any() | {:error, String.t()}
@spec generateVectorOfInt(integer()) :: [integer()] | {:error, String.t()}

generateVectorOfInt

Positional Arguments
  • len: size_t
Return
  • vec: [integer()]

Python prototype (for reference only):

generateVectorOfInt(len) -> vec
Link to this function

generateVectorOfMat(named_args)

View Source
@spec generateVectorOfMat(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

generateVectorOfMat(len, rows, cols, dtype)

View Source
@spec generateVectorOfMat(integer(), integer(), integer(), integer()) ::
  [Evision.Mat.t()] | {:error, String.t()}

generateVectorOfMat

Positional Arguments
  • len: size_t
  • rows: integer()
  • cols: integer()
  • dtype: integer()
Return
  • vec: [Evision.Mat].

Python prototype (for reference only):

generateVectorOfMat(len, rows, cols, dtype[, vec]) -> vec
Link to this function

generateVectorOfMat(len, rows, cols, dtype, opts)

View Source
@spec generateVectorOfMat(
  integer(),
  integer(),
  integer(),
  integer(),
  [{atom(), term()}, ...] | nil
) ::
  [Evision.Mat.t()] | {:error, String.t()}

generateVectorOfMat

Positional Arguments
  • len: size_t
  • rows: integer()
  • cols: integer()
  • dtype: integer()
Return
  • vec: [Evision.Mat].

Python prototype (for reference only):

generateVectorOfMat(len, rows, cols, dtype[, vec]) -> vec
Link to this function

generateVectorOfRect(named_args)

View Source
@spec generateVectorOfRect(Keyword.t()) :: any() | {:error, String.t()}
@spec generateVectorOfRect(integer()) ::
  [{number(), number(), number(), number()}] | {:error, String.t()}

generateVectorOfRect

Positional Arguments
  • len: size_t
Return
  • vec: [Rect]

Python prototype (for reference only):

generateVectorOfRect(len) -> vec
Link to this function

testAsyncArray(named_args)

View Source
@spec testAsyncArray(Keyword.t()) :: any() | {:error, String.t()}
@spec testAsyncArray(Evision.Mat.maybe_mat_in()) ::
  Evision.AsyncArray.t() | {:error, String.t()}

testAsyncArray

Positional Arguments
Return
  • retval: Evision.AsyncArray.t()

Python prototype (for reference only):

testAsyncArray(argument) -> retval
@spec testAsyncException() :: Evision.AsyncArray.t() | {:error, String.t()}

testAsyncException

Return
  • retval: Evision.AsyncArray.t()

Python prototype (for reference only):

testAsyncException() -> retval
Link to this function

testAsyncException(named_args)

View Source
@spec testAsyncException(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

testOverloadResolution(named_args)

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

Variant 1:

testOverloadResolution

Positional Arguments
  • rect: Rect
Return

Python prototype (for reference only):

testOverloadResolution(rect) -> retval

Variant 2:

testOverloadResolution

Positional Arguments
  • value: integer()
Keyword Arguments
  • point: Point.
Return

Python prototype (for reference only):

testOverloadResolution(value[, point]) -> retval
Link to this function

testOverloadResolution(value, opts)

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

testOverloadResolution

Positional Arguments
  • value: integer()
Keyword Arguments
  • point: Point.
Return

Python prototype (for reference only):

testOverloadResolution(value[, point]) -> retval
Link to this function

testOverwriteNativeMethod(named_args)

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

testOverwriteNativeMethod

Positional Arguments
  • argument: integer()
Return
  • retval: integer()

Python prototype (for reference only):

testOverwriteNativeMethod(argument) -> retval
Link to this function

testRaiseGeneralException()

View Source
@spec testRaiseGeneralException() :: :ok | {:error, String.t()}

testRaiseGeneralException

Python prototype (for reference only):

testRaiseGeneralException() -> None
Link to this function

testRaiseGeneralException(named_args)

View Source
@spec testRaiseGeneralException(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

testReservedKeywordConversion(named_args)

View Source
@spec testReservedKeywordConversion(Keyword.t()) :: any() | {:error, String.t()}
@spec testReservedKeywordConversion(integer()) :: binary() | {:error, String.t()}

testReservedKeywordConversion

Positional Arguments
  • positional_argument: integer()
Keyword Arguments
  • lambda: integer().
  • from: integer().
Return

Python prototype (for reference only):

testReservedKeywordConversion(positional_argument[, lambda[, from]]) -> retval
Link to this function

testReservedKeywordConversion(positional_argument, opts)

View Source
@spec testReservedKeywordConversion(integer(), [from: term(), lambda: term()] | nil) ::
  binary() | {:error, String.t()}

testReservedKeywordConversion

Positional Arguments
  • positional_argument: integer()
Keyword Arguments
  • lambda: integer().
  • from: integer().
Return

Python prototype (for reference only):

testReservedKeywordConversion(positional_argument[, lambda[, from]]) -> retval
Link to this function

testRotatedRect(named_args)

View Source
@spec testRotatedRect(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

testRotatedRect(x, y, w, h, angle)

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

testRotatedRect

Positional Arguments
  • x: float
  • y: float
  • w: float
  • h: float
  • angle: float
Return
  • retval: {centre={x, y}, size={s1, s2}, angle}

Python prototype (for reference only):

testRotatedRect(x, y, w, h, angle) -> retval
Link to this function

testRotatedRectVector(named_args)

View Source
@spec testRotatedRectVector(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

testRotatedRectVector(x, y, w, h, angle)

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

testRotatedRectVector

Positional Arguments
  • x: float
  • y: float
  • w: float
  • h: float
  • angle: float
Return
  • retval: [{centre={x, y}, size={s1, s2}, angle}]

Python prototype (for reference only):

testRotatedRectVector(x, y, w, h, angle) -> retval