View Source Evision.UMat (Evision v0.2.3)

Summary

Types

t()

Type that represents an UMat struct.

Types

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

Type that represents an UMat struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@spec context() :: :ok | {:error, String.t()}

context

Return
  • retval: void*

Python prototype (for reference only):

context() -> retval
@spec get(Evision.Mat.t()) :: Evision.Mat.t() | {:error, String.t()}

get

Positional Arguments
  • self: Evision.UMat.t()
Return
  • retval: Evision.Mat.t()

Python prototype (for reference only):

get() -> retval
@spec get_offset(Evision.Mat.maybe_mat_in()) :: integer()
Link to this function

handle(self, accessFlags)

View Source
@spec handle(Evision.Mat.t(), Evision.AccessFlag.enum()) :: :ok | {:error, String.t()}

handle

Positional Arguments
  • self: Evision.UMat.t()
  • accessFlags: AccessFlag
Return
  • retval: void*

Python prototype (for reference only):

handle(accessFlags) -> retval
@spec isContinuous(Evision.Mat.t()) :: boolean() | {:error, String.t()}

isContinuous

Positional Arguments
  • self: Evision.UMat.t()
Return
  • retval: bool

Python prototype (for reference only):

isContinuous() -> retval
@spec isSubmatrix(Evision.Mat.t()) :: boolean() | {:error, String.t()}

isSubmatrix

Positional Arguments
  • self: Evision.UMat.t()
Return
  • retval: bool

Python prototype (for reference only):

isSubmatrix() -> retval
@spec queue() :: :ok | {:error, String.t()}

queue

Return
  • retval: void*

Python prototype (for reference only):

queue() -> retval
@spec set_offset(Evision.Mat.maybe_mat_in(), integer()) :: Evision.Mat.t()
@spec uMat() :: Evision.Mat.t() | {:error, String.t()}

UMat

Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return
  • self: Evision.Mat.t()

Python prototype (for reference only):

UMat([, usageFlags]) -> <UMat object>
@spec uMat([{:usageFlags, term()}] | nil) :: Evision.Mat.t() | {:error, String.t()}
@spec uMat(Evision.Mat.maybe_mat_in()) :: Evision.Mat.t() | {:error, String.t()}

Variant 1:

UMat

Positional Arguments
Return
  • self: Evision.Mat.t()

Python prototype (for reference only):

UMat(m) -> <UMat object>

Variant 2:

UMat

Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return
  • self: Evision.Mat.t()

Python prototype (for reference only):

UMat([, usageFlags]) -> <UMat object>
@spec uMat(Evision.Mat.maybe_mat_in(), [{integer(), integer()} | :all]) ::
  Evision.Mat.t() | {:error, String.t()}
@spec uMat(Evision.Mat.maybe_mat_in(), {number(), number(), number(), number()}) ::
  Evision.Mat.t() | {:error, String.t()}
@spec uMat(Evision.Mat.maybe_mat_in(), {integer(), integer()} | :all) ::
  Evision.Mat.t() | {:error, String.t()}
@spec uMat(
  {number(), number()},
  integer()
) :: Evision.Mat.t() | {:error, String.t()}

Variant 1:

UMat

Positional Arguments
Return
  • self: Evision.Mat.t()

Python prototype (for reference only):

UMat(m, ranges) -> <UMat object>

Variant 2:

UMat

Positional Arguments
Return
  • self: Evision.Mat.t()

Python prototype (for reference only):

UMat(m, roi) -> <UMat object>

Variant 3:

UMat

Positional Arguments
Keyword Arguments
Return
  • self: Evision.Mat.t()

Python prototype (for reference only):

UMat(m, rowRange[, colRange]) -> <UMat object>

Variant 4:

UMat

Positional Arguments
  • size: Size
  • type: integer()
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return
  • self: Evision.Mat.t()

Python prototype (for reference only):

UMat(size, type[, usageFlags]) -> <UMat object>
@spec uMat(
  Evision.Mat.maybe_mat_in(),
  {integer(), integer()} | :all,
  [{:colRange, term()}] | nil
) ::
  Evision.Mat.t() | {:error, String.t()}
@spec uMat({number(), number()}, integer(), [{:usageFlags, term()}] | nil) ::
  Evision.Mat.t() | {:error, String.t()}
@spec uMat({number(), number()}, integer(), Evision.scalar()) ::
  Evision.Mat.t() | {:error, String.t()}
@spec uMat(integer(), integer(), integer()) :: Evision.Mat.t() | {:error, String.t()}

Variant 1:

UMat

Positional Arguments
  • size: Size
  • type: integer()
  • s: Evision.scalar()
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return
  • self: Evision.Mat.t()

Python prototype (for reference only):

UMat(size, type, s[, usageFlags]) -> <UMat object>

Variant 2:

UMat

Positional Arguments
  • rows: integer()
  • cols: integer()
  • type: integer()
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return
  • self: Evision.Mat.t()

Python prototype (for reference only):

UMat(rows, cols, type[, usageFlags]) -> <UMat object>

Variant 3:

UMat

Positional Arguments
Keyword Arguments
Return
  • self: Evision.Mat.t()

Python prototype (for reference only):

UMat(m, rowRange[, colRange]) -> <UMat object>

Variant 4:

UMat

Positional Arguments
  • size: Size
  • type: integer()
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return
  • self: Evision.Mat.t()

Python prototype (for reference only):

UMat(size, type[, usageFlags]) -> <UMat object>
Link to this function

uMat(size, type, s, opts)

View Source
@spec uMat(
  {number(), number()},
  integer(),
  Evision.scalar(),
  [{:usageFlags, term()}] | nil
) ::
  Evision.Mat.t() | {:error, String.t()}
@spec uMat(integer(), integer(), integer(), [{:usageFlags, term()}] | nil) ::
  Evision.Mat.t() | {:error, String.t()}
@spec uMat(integer(), integer(), integer(), Evision.scalar()) ::
  Evision.Mat.t() | {:error, String.t()}

Variant 1:

UMat

Positional Arguments
  • rows: integer()
  • cols: integer()
  • type: integer()
  • s: Evision.scalar()
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return
  • self: Evision.Mat.t()

Python prototype (for reference only):

UMat(rows, cols, type, s[, usageFlags]) -> <UMat object>

Variant 2:

UMat

Positional Arguments
  • size: Size
  • type: integer()
  • s: Evision.scalar()
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return
  • self: Evision.Mat.t()

Python prototype (for reference only):

UMat(size, type, s[, usageFlags]) -> <UMat object>

Variant 3:

UMat

Positional Arguments
  • rows: integer()
  • cols: integer()
  • type: integer()
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return
  • self: Evision.Mat.t()

Python prototype (for reference only):

UMat(rows, cols, type[, usageFlags]) -> <UMat object>
Link to this function

uMat(rows, cols, type, s, opts)

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

UMat

Positional Arguments
  • rows: integer()
  • cols: integer()
  • type: integer()
  • s: Evision.scalar()
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return
  • self: Evision.Mat.t()

Python prototype (for reference only):

UMat(rows, cols, type, s[, usageFlags]) -> <UMat object>